Skip to content

Use gl_VertexID for OpenGL#156

Open
jrng wants to merge 1 commit into
KhronosGroup:mainfrom
jrng:opengl-vertex-index
Open

Use gl_VertexID for OpenGL#156
jrng wants to merge 1 commit into
KhronosGroup:mainfrom
jrng:opengl-vertex-index

Conversation

@jrng
Copy link
Copy Markdown

@jrng jrng commented May 13, 2026

gl_VertexIndex is only available for vulkan targets, whereas gl_VertexID is only available for opengl.
This fixes the shader compilation error:

OpenGL Debug message (2): 0:25(13): error: `gl_VertexIndex' undeclared

gl_VertexIndex is only available for vulkan targets, whereas gl_VertexID
is only available for opengl.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 13, 2026

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants