Skip to content

Spec doesn't specify the behavior of vkCmdTraceRayKHR with zero addressed shader binding table. #2511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kevyuu opened this issue Mar 17, 2025 · 0 comments

Comments

@kevyuu
Copy link

kevyuu commented Mar 17, 2025

These VUIDs below implies that zero addressed SBT for miss and hit shader group is valid and have a special behavior, yet the behavior is not specified in the spec.

(https://docs.vulkan.org/spec/latest/chapters/raytracing.html#VUID-vkCmdTraceRaysKHR-flags-03696)
(https://docs.vulkan.org/spec/latest/chapters/raytracing.html#VUID-vkCmdTraceRaysKHR-flags-03697)
(https://docs.vulkan.org/spec/latest/chapters/raytracing.html#VUID-vkCmdTraceRaysKHR-flags-03511)

Furthermore from experimentation, validation layer does not trigger a complain that these zero addressed SBT have to be created with VK_BUFFER_USAGE_SHADER_BINDING_TABLE_BIT to follow this. This and other exceptions for zero addressed SBT affirm my believe that zero address have a special semantic that is not documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants