Skip to content

Commit 52104a2

Browse files
Add more information to the error message
Summary: ^^ Reviewed By: syeh1, rudybear, AmesingFlank Differential Revision: D59526325 fbshipit-source-id: 94a3da3e70154126d790a3d45a21c4cd965cdf7a
1 parent 98ef4ba commit 52104a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/igl/vulkan/Framebuffer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ Framebuffer::Framebuffer(const Device& device, FramebufferDesc desc) :
273273
IGL_ASSERT(height_ == attachmentHeight);
274274
}
275275

276-
IGL_ASSERT_MSG(tex.getVkFormat() != VK_FORMAT_UNDEFINED, "Invalid texture format");
276+
IGL_ASSERT_MSG(tex.getVkFormat() != VK_FORMAT_UNDEFINED,
277+
"Invalid texture format: %d",
278+
static_cast<int>(tex.getVkFormat()));
277279
};
278280

279281
for (const auto& attachment : desc_.colorAttachments) {

0 commit comments

Comments
 (0)