You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to write the equivalent version of the tutorial's shader which draws without a buffer in GLSL. as mentioned here
And I encountered the problem where gl_VertexIndex just don't seem to work at all compared to @builtin(vertex_index)
here is my simplest proof of concept I tried to recreate, it's the vertex shader and the pipeline is exactly the same as the tutorial (except for the part where I used GLSL) with 3 vertices or (0..3) range pretty much directly copied from here and the tutorial above
I know my pipeline should be fine given that when I pass in Vertex and Index buffers, it works just fine, is there anything I am doing terribly wrong then?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I tried to write the equivalent version of the tutorial's shader which draws without a buffer in GLSL. as mentioned here
And I encountered the problem where
gl_VertexIndex
just don't seem to work at all compared to@builtin(vertex_index)
here is my simplest proof of concept I tried to recreate, it's the vertex shader and the pipeline is exactly the same as the tutorial (except for the part where I used GLSL) with 3 vertices or (0..3) range pretty much directly copied from here and the tutorial above
I know my pipeline should be fine given that when I pass in Vertex and Index buffers, it works just fine, is there anything I am doing terribly wrong then?
Beta Was this translation helpful? Give feedback.
All reactions