| ; Test: SpvModuleScopeVarParserTest_BuiltinVertexIndex.spvasm |
| ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| OpMemoryModel Logical Simple |
| OpEntryPoint Vertex %1 "main" %gl_VertexIndex %position |
| OpName %position "position" |
| OpDecorate %position BuiltIn Position |
| OpDecorate %gl_VertexIndex BuiltIn VertexIndex |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %gl_VertexIndex = OpVariable %_ptr_Input_uint Input |
| %6 = OpTypeFunction %void |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %position = OpVariable %_ptr_Output_v4float Output |
| %1 = OpFunction %void None %6 |