Skip to content

Commit

Permalink
Add more information to the error message
Browse files Browse the repository at this point in the history
Summary: ^^

Reviewed By: syeh1, rudybear, AmesingFlank

Differential Revision: D59526325

fbshipit-source-id: 94a3da3e70154126d790a3d45a21c4cd965cdf7a
  • Loading branch information
francoiscoulombe authored and facebook-github-bot committed Jul 9, 2024
1 parent 98ef4ba commit 52104a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/igl/vulkan/Framebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ Framebuffer::Framebuffer(const Device& device, FramebufferDesc desc) :
IGL_ASSERT(height_ == attachmentHeight);
}

IGL_ASSERT_MSG(tex.getVkFormat() != VK_FORMAT_UNDEFINED, "Invalid texture format");
IGL_ASSERT_MSG(tex.getVkFormat() != VK_FORMAT_UNDEFINED,
"Invalid texture format: %d",
static_cast<int>(tex.getVkFormat()));
};

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

0 comments on commit 52104a2

Please sign in to comment.