KhronosGroup / KhronosGroup/SPIRV-Tools

spirv-val: push constant array member must only be accessed with dynamically uniform indices

Open
#2,909 2 comments 0 reactions 1 assignee Claimed by @sfricke-samsung View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.