diff --git a/src/igl/vulkan/Common.cpp b/src/igl/vulkan/Common.cpp index 28e59b3936..c6269eca1e 100644 --- a/src/igl/vulkan/Common.cpp +++ b/src/igl/vulkan/Common.cpp @@ -545,6 +545,15 @@ void ensureShaderModule(IShaderModule* sm) { continue; } } + for (const auto& i : info.images) { + if (!IGL_DEBUG_VERIFY(i.descriptorSet == kBindPoint_StorageImages)) { + IGL_LOG_ERROR( + "Missing descriptor set id for storage images: the shader should contain \"layout(set = " + "%u, ...)\"", + kBindPoint_StorageImages); + continue; + } + } } uint32_t getNumImagePlanes(VkFormat format) {