Practice free →
Home › Per Microsoft HLSL docs, a vertex shader output …

Per Microsoft HLSL docs, a vertex shader output marked SV_POSITION corresponds to which GLSL equivalent?

Agl_FragCoord (window-space position)
Bgl_FragColor (final colour out)
Cgl_VertexID (vertex index)
Dgl_Position (clip-space position)
Answer & Solution
Correct answer: D. gl_Position (clip-space position)
Microsoft HLSL semantics + LearnOpenGL: SV_POSITION = clip-space vertex position; the DX equivalent of gl_Position.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions