From 52104a2554af40d7524f7f0c222d58754affecc8 Mon Sep 17 00:00:00 2001 From: Francois Coulombe Date: Tue, 9 Jul 2024 11:56:43 -0700 Subject: [PATCH] Add more information to the error message Summary: ^^ Reviewed By: syeh1, rudybear, AmesingFlank Differential Revision: D59526325 fbshipit-source-id: 94a3da3e70154126d790a3d45a21c4cd965cdf7a --- src/igl/vulkan/Framebuffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/igl/vulkan/Framebuffer.cpp b/src/igl/vulkan/Framebuffer.cpp index 63e926df3b..aa7138475e 100644 --- a/src/igl/vulkan/Framebuffer.cpp +++ b/src/igl/vulkan/Framebuffer.cpp @@ -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(tex.getVkFormat())); }; for (const auto& attachment : desc_.colorAttachments) {