1; SPIR-V 2; Version: 1.0 3; Generator: Khronos Glslang Reference Front End; 7 4; Bound: 34 5; Schema: 0 6 OpCapability Shader 7 %1 = OpExtInstImport "GLSL.std.450" 8 OpMemoryModel Logical GLSL450 9 OpEntryPoint Fragment %main "main" %vA %FragColor 10 OpExecutionMode %main OriginUpperLeft 11 OpSource GLSL 450 12 OpName %main "main" 13 OpName %foobar_i1_ "foobar(i1;" 14 OpName %a "a" 15 OpName %a_0 "a" 16 OpName %vA "vA" 17 OpName %param "param" 18 OpName %FragColor "FragColor" 19 OpDecorate %vA Flat 20 OpDecorate %vA Location 0 21 OpDecorate %FragColor Location 0 22 %void = OpTypeVoid 23 %3 = OpTypeFunction %void 24 %int = OpTypeInt 32 1 25%_ptr_Function_int = OpTypePointer Function %int 26 %float = OpTypeFloat 32 27 %v4float = OpTypeVector %float 4 28 %10 = OpTypeFunction %v4float %_ptr_Function_int 29 %int_0 = OpConstant %int 0 30 %bool = OpTypeBool 31 %float_10 = OpConstant %float 10 32 %22 = OpConstantComposite %v4float %float_10 %float_10 %float_10 %float_10 33%_ptr_Function_v4float = OpTypePointer Function %v4float 34%_ptr_Input_int = OpTypePointer Input %int 35 %vA = OpVariable %_ptr_Input_int Input 36%_ptr_Output_v4float = OpTypePointer Output %v4float 37 %FragColor = OpVariable %_ptr_Output_v4float Output 38 %main = OpFunction %void None %3 39 %5 = OpLabel 40 %a_0 = OpVariable %_ptr_Function_v4float Function 41 %param = OpVariable %_ptr_Function_int Function 42 %30 = OpLoad %int %vA 43 OpStore %param %30 44 %31 = OpFunctionCall %v4float %foobar_i1_ %param 45 OpStore %FragColor %22 46 OpReturn 47 OpFunctionEnd 48 %foobar_i1_ = OpFunction %v4float None %10 49 %a = OpFunctionParameter %_ptr_Function_int 50 %13 = OpLabel 51 %14 = OpLoad %int %a 52 %17 = OpSLessThan %bool %14 %int_0 53 OpSelectionMerge %19 None 54 OpBranchConditional %17 %18 %19 55 %18 = OpLabel 56 OpKill 57 %19 = OpLabel 58 OpReturnValue %22 59 OpFunctionEnd 60