KhronosGroup / KhronosGroup/SPIRV-Tools
spirv-val: push constant array member must only be accessed with dynamically uniform indices
Open
component:validation
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 709
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 28
Description
Vulkan spec says:
"Any member of a push constant block that is declared as an array must only be accessed with
dynamically uniform indices."
You can index a push constant array member with gl_VertexIndex and the validator does not report any issue. gl_VertexIndex is not dynamically uniform.
Contributor guide
Assessment
This issue has not been assessed yet.