| ; Test: SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_AccessChain.spvasm |
| ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| OpMemoryModel Logical Simple |
| OpEntryPoint Vertex %3 "main" %position %gl_InstanceIndex |
| OpName %position "position" |
| OpDecorate %position BuiltIn Position |
| OpDecorate %gl_InstanceIndex BuiltIn InstanceIndex |
| %6 = OpTypeFunction %void |
| %_ptr_Input_int = OpTypePointer Input %int |
| %gl_InstanceIndex = OpVariable %_ptr_Input_int Input |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %position = OpVariable %_ptr_Output_v4float Output |
| %3 = OpFunction %void None %6 |
| %14 = OpAccessChain %_ptr_Input_int %gl_InstanceIndex |