Skip to content
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

GL_KHR_vulkan_glsl allows gl_VertexIndex in any stage #219

Open
tksuoran opened this issue Oct 4, 2023 · 0 comments
Open

GL_KHR_vulkan_glsl allows gl_VertexIndex in any stage #219

tksuoran opened this issue Oct 4, 2023 · 0 comments
Assignees

Comments

@tksuoran
Copy link

tksuoran commented Oct 4, 2023

Any stage:

            in gl_NumWorkGroups
            in gl_WorkGroupSize
            in gl_WorkGroupID
            in gl_LocalInvocationID
            in gl_GlobalInvocationID
            in gl_LocalInvocationIndex

            in gl_VertexIndex
            in gl_InstanceIndex
            in gl_InvocationID
            in gl_PatchVerticesIn      (PatchVertices)
            in gl_PrimitiveIDIn        (PrimitiveID)
            in/out gl_PrimitiveID      (in/out based only on storage qualifier)
            in gl_TessCoord

Is there supposed to be a line Vertex stage only: before in gl_VertexIndex line? As is, one should be able to use gl_VertexIndex in fragment shader, I don't think this was intended.

@pdaniell-nv pdaniell-nv added this to the Needs Action/PR milestone Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants