Skip to content

Commit

Permalink
igl | vulkan | Check storage images in ensureShaderModule()
Browse files Browse the repository at this point in the history
Reviewed By: rudybear, rameshviswanathan

Differential Revision: D69157243

fbshipit-source-id: 1c196a6931a98608cb37e10529ba991a77d920ac
  • Loading branch information
corporateshark authored and facebook-github-bot committed Feb 5, 2025
1 parent 5a9ff24 commit 5e9d9b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/igl/vulkan/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5e9d9b5

Please sign in to comment.