Skip to content
Discussion options

You must be logged in to vote

You may be able to use gl_VertexIndex instead. This difference is due to Slang's GLSL compatibility mostly matching Vulkan-flavored GLSL, not OpenGL. gl_InstanceID and gl_VertexID are gl_InstanceIndex and gl_VertexIndex in Vulkan-targeting GLSL.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TomSirgedas
Comment options

@jkwak-work
Comment options

Answer selected by TomSirgedas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants