1 OpCapability Shader 2 %1 = OpExtInstImport "GLSL.std.450" 3 OpMemoryModel Logical GLSL450 4 OpEntryPoint Vertex %main "main" %sk_InstanceID %id 5 OpName %sk_InstanceID "sk_InstanceID" 6 OpName %id "id" 7 OpName %fn_i "fn_i" 8 OpName %main "main" 9 OpDecorate %sk_InstanceID BuiltIn InstanceIndex 10 OpDecorate %id Location 1 11 %int = OpTypeInt 32 1 12%_ptr_Input_int = OpTypePointer Input %int 13%sk_InstanceID = OpVariable %_ptr_Input_int Input 14%_ptr_Output_int = OpTypePointer Output %int 15 %id = OpVariable %_ptr_Output_int Output 16 %9 = OpTypeFunction %int 17 %void = OpTypeVoid 18 %13 = OpTypeFunction %void 19 %fn_i = OpFunction %int None %9 20 %10 = OpLabel 21 %11 = OpLoad %int %sk_InstanceID 22 OpReturnValue %11 23 OpFunctionEnd 24 %main = OpFunction %void None %13 25 %14 = OpLabel 26 %15 = OpFunctionCall %int %fn_i 27 OpStore %id %15 28 OpReturn 29 OpFunctionEnd 30