1 OpCapability Shader 2 %1 = OpExtInstImport "GLSL.std.450" 3 OpMemoryModel Logical GLSL450 4 OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor 5 OpExecutionMode %_entrypoint_v OriginUpperLeft 6 OpName %sk_FragColor "sk_FragColor" 7 OpName %_UniformBuffer "_UniformBuffer" 8 OpMemberName %_UniformBuffer 0 "testInputs" 9 OpMemberName %_UniformBuffer 1 "colorBlack" 10 OpMemberName %_UniformBuffer 2 "colorGreen" 11 OpMemberName %_UniformBuffer 3 "colorRed" 12 OpName %_entrypoint_v "_entrypoint_v" 13 OpName %main "main" 14 OpName %_0_v "_0_v" 15 OpName %_1_i "_1_i" 16 OpName %_2_x "_2_x" 17 OpName %_3_y "_3_y" 18 OpName %_4_z "_4_z" 19 OpName %_5_w "_5_w" 20 OpDecorate %sk_FragColor RelaxedPrecision 21 OpDecorate %sk_FragColor Location 0 22 OpDecorate %sk_FragColor Index 0 23 OpMemberDecorate %_UniformBuffer 0 Offset 0 24 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 25 OpMemberDecorate %_UniformBuffer 1 Offset 16 26 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 27 OpMemberDecorate %_UniformBuffer 2 Offset 32 28 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision 29 OpMemberDecorate %_UniformBuffer 3 Offset 48 30 OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision 31 OpDecorate %_UniformBuffer Block 32 OpDecorate %7 Binding 0 33 OpDecorate %7 DescriptorSet 0 34 OpDecorate %_0_v RelaxedPrecision 35 OpDecorate %29 RelaxedPrecision 36 OpDecorate %35 RelaxedPrecision 37 OpDecorate %36 RelaxedPrecision 38 OpDecorate %38 RelaxedPrecision 39 OpDecorate %40 RelaxedPrecision 40 OpDecorate %42 RelaxedPrecision 41 OpDecorate %_2_x RelaxedPrecision 42 OpDecorate %_3_y RelaxedPrecision 43 OpDecorate %_4_z RelaxedPrecision 44 OpDecorate %_5_w RelaxedPrecision 45 OpDecorate %58 RelaxedPrecision 46 OpDecorate %71 RelaxedPrecision 47 OpDecorate %74 RelaxedPrecision 48 OpDecorate %75 RelaxedPrecision 49 %float = OpTypeFloat 32 50 %v4float = OpTypeVector %float 4 51%_ptr_Output_v4float = OpTypePointer Output %v4float 52%sk_FragColor = OpVariable %_ptr_Output_v4float Output 53%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float %v4float 54%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 55 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 56 %void = OpTypeVoid 57 %12 = OpTypeFunction %void 58 %float_0 = OpConstant %float 0 59 %v2float = OpTypeVector %float 2 60 %16 = OpConstantComposite %v2float %float_0 %float_0 61%_ptr_Function_v2float = OpTypePointer Function %v2float 62 %20 = OpTypeFunction %v4float %_ptr_Function_v2float 63%_ptr_Function_v4float = OpTypePointer Function %v4float 64%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 65 %int = OpTypeInt 32 1 66 %int_0 = OpConstant %int 0 67 %v4int = OpTypeVector %int 4 68%_ptr_Function_v4int = OpTypePointer Function %v4int 69 %int_1 = OpConstant %int 1 70%_ptr_Function_float = OpTypePointer Function %float 71%float_n1_25 = OpConstant %float -1.25 72 %60 = OpConstantComposite %v4float %float_n1_25 %float_n1_25 %float_n1_25 %float_0 73 %bool = OpTypeBool 74 %v4bool = OpTypeVector %bool 4 75 %int_2 = OpConstant %int 2 76 %int_3 = OpConstant %int 3 77%_entrypoint_v = OpFunction %void None %12 78 %13 = OpLabel 79 %17 = OpVariable %_ptr_Function_v2float Function 80 OpStore %17 %16 81 %19 = OpFunctionCall %v4float %main %17 82 OpStore %sk_FragColor %19 83 OpReturn 84 OpFunctionEnd 85 %main = OpFunction %v4float None %20 86 %21 = OpFunctionParameter %_ptr_Function_v2float 87 %22 = OpLabel 88 %_0_v = OpVariable %_ptr_Function_v4float Function 89 %_1_i = OpVariable %_ptr_Function_v4int Function 90 %_2_x = OpVariable %_ptr_Function_float Function 91 %_3_y = OpVariable %_ptr_Function_float Function 92 %_4_z = OpVariable %_ptr_Function_float Function 93 %_5_w = OpVariable %_ptr_Function_float Function 94 %65 = OpVariable %_ptr_Function_v4float Function 95 %25 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 96 %29 = OpLoad %v4float %25 97 OpStore %_0_v %29 98 %33 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 99 %35 = OpLoad %v4float %33 100 %36 = OpCompositeExtract %float %35 0 101 %37 = OpConvertFToS %int %36 102 %38 = OpCompositeExtract %float %35 1 103 %39 = OpConvertFToS %int %38 104 %40 = OpCompositeExtract %float %35 2 105 %41 = OpConvertFToS %int %40 106 %42 = OpCompositeExtract %float %35 3 107 %43 = OpConvertFToS %int %42 108 %44 = OpCompositeConstruct %v4int %37 %39 %41 %43 109 OpStore %_1_i %44 110 %47 = OpCompositeExtract %int %44 0 111 %48 = OpVectorExtractDynamic %float %29 %47 112 OpStore %_2_x %48 113 %50 = OpCompositeExtract %int %44 1 114 %51 = OpVectorExtractDynamic %float %29 %50 115 OpStore %_3_y %51 116 %53 = OpCompositeExtract %int %44 2 117 %54 = OpVectorExtractDynamic %float %29 %53 118 OpStore %_4_z %54 119 %56 = OpCompositeExtract %int %44 3 120 %57 = OpVectorExtractDynamic %float %29 %56 121 OpStore %_5_w %57 122 %58 = OpCompositeConstruct %v4float %48 %51 %54 %57 123 %61 = OpFOrdEqual %v4bool %58 %60 124 %64 = OpAll %bool %61 125 OpSelectionMerge %68 None 126 OpBranchConditional %64 %66 %67 127 %66 = OpLabel 128 %69 = OpAccessChain %_ptr_Uniform_v4float %7 %int_2 129 %71 = OpLoad %v4float %69 130 OpStore %65 %71 131 OpBranch %68 132 %67 = OpLabel 133 %72 = OpAccessChain %_ptr_Uniform_v4float %7 %int_3 134 %74 = OpLoad %v4float %72 135 OpStore %65 %74 136 OpBranch %68 137 %68 = OpLabel 138 %75 = OpLoad %v4float %65 139 OpReturnValue %75 140 OpFunctionEnd 141