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 "colorGreen" 10 OpMemberName %_UniformBuffer 2 "colorRed" 11 OpName %_entrypoint_v "_entrypoint_v" 12 OpName %main "main" 13 OpName %expected "expected" 14 OpDecorate %sk_FragColor RelaxedPrecision 15 OpDecorate %sk_FragColor Location 0 16 OpDecorate %sk_FragColor Index 0 17 OpMemberDecorate %_UniformBuffer 0 Offset 0 18 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 19 OpMemberDecorate %_UniformBuffer 1 Offset 16 20 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 21 OpMemberDecorate %_UniformBuffer 2 Offset 32 22 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision 23 OpDecorate %_UniformBuffer Block 24 OpDecorate %7 Binding 0 25 OpDecorate %7 DescriptorSet 0 26 OpDecorate %expected RelaxedPrecision 27 OpDecorate %28 RelaxedPrecision 28 OpDecorate %33 RelaxedPrecision 29 OpDecorate %34 RelaxedPrecision 30 OpDecorate %38 RelaxedPrecision 31 OpDecorate %40 RelaxedPrecision 32 OpDecorate %41 RelaxedPrecision 33 OpDecorate %42 RelaxedPrecision 34 OpDecorate %49 RelaxedPrecision 35 OpDecorate %51 RelaxedPrecision 36 OpDecorate %52 RelaxedPrecision 37 OpDecorate %54 RelaxedPrecision 38 OpDecorate %61 RelaxedPrecision 39 OpDecorate %63 RelaxedPrecision 40 OpDecorate %103 RelaxedPrecision 41 OpDecorate %106 RelaxedPrecision 42 OpDecorate %107 RelaxedPrecision 43 %float = OpTypeFloat 32 44 %v4float = OpTypeVector %float 4 45%_ptr_Output_v4float = OpTypePointer Output %v4float 46%sk_FragColor = OpVariable %_ptr_Output_v4float Output 47%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float 48%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 49 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 50 %void = OpTypeVoid 51 %12 = OpTypeFunction %void 52 %float_0 = OpConstant %float 0 53 %v2float = OpTypeVector %float 2 54 %16 = OpConstantComposite %v2float %float_0 %float_0 55%_ptr_Function_v2float = OpTypePointer Function %v2float 56 %20 = OpTypeFunction %v4float %_ptr_Function_v2float 57%_ptr_Function_v4float = OpTypePointer Function %v4float 58 %25 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0 59 %bool = OpTypeBool 60 %false = OpConstantFalse %bool 61%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 62 %int = OpTypeInt 32 1 63 %int_0 = OpConstant %int 0 64 %v2bool = OpTypeVector %bool 2 65 %v3float = OpTypeVector %float 3 66 %v3bool = OpTypeVector %bool 3 67 %v4bool = OpTypeVector %bool 4 68 %float_1 = OpConstant %float 1 69 %75 = OpConstantComposite %v2float %float_1 %float_1 70 %93 = OpConstantComposite %v2float %float_1 %float_0 71 %int_1 = OpConstant %int 1 72 %int_2 = OpConstant %int 2 73%_entrypoint_v = OpFunction %void None %12 74 %13 = OpLabel 75 %17 = OpVariable %_ptr_Function_v2float Function 76 OpStore %17 %16 77 %19 = OpFunctionCall %v4float %main %17 78 OpStore %sk_FragColor %19 79 OpReturn 80 OpFunctionEnd 81 %main = OpFunction %v4float None %20 82 %21 = OpFunctionParameter %_ptr_Function_v2float 83 %22 = OpLabel 84 %expected = OpVariable %_ptr_Function_v4float Function 85 %97 = OpVariable %_ptr_Function_v4float Function 86 OpStore %expected %25 87 %29 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 88 %33 = OpLoad %v4float %29 89 %34 = OpCompositeExtract %float %33 0 90 %28 = OpDPdx %float %34 91 %35 = OpFOrdEqual %bool %28 %float_0 92 OpSelectionMerge %37 None 93 OpBranchConditional %35 %36 %37 94 %36 = OpLabel 95 %39 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 96 %40 = OpLoad %v4float %39 97 %41 = OpVectorShuffle %v2float %40 %40 0 1 98 %38 = OpDPdx %v2float %41 99 %42 = OpVectorShuffle %v2float %25 %25 0 1 100 %43 = OpFOrdEqual %v2bool %38 %42 101 %45 = OpAll %bool %43 102 OpBranch %37 103 %37 = OpLabel 104 %46 = OpPhi %bool %false %22 %45 %36 105 OpSelectionMerge %48 None 106 OpBranchConditional %46 %47 %48 107 %47 = OpLabel 108 %50 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 109 %51 = OpLoad %v4float %50 110 %52 = OpVectorShuffle %v3float %51 %51 0 1 2 111 %49 = OpDPdx %v3float %52 112 %54 = OpVectorShuffle %v3float %25 %25 0 1 2 113 %55 = OpFOrdEqual %v3bool %49 %54 114 %57 = OpAll %bool %55 115 OpBranch %48 116 %48 = OpLabel 117 %58 = OpPhi %bool %false %37 %57 %47 118 OpSelectionMerge %60 None 119 OpBranchConditional %58 %59 %60 120 %59 = OpLabel 121 %62 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 122 %63 = OpLoad %v4float %62 123 %61 = OpDPdx %v4float %63 124 %64 = OpFOrdEqual %v4bool %61 %25 125 %66 = OpAll %bool %64 126 OpBranch %60 127 %60 = OpLabel 128 %67 = OpPhi %bool %false %48 %66 %59 129 OpSelectionMerge %69 None 130 OpBranchConditional %67 %68 %69 131 %68 = OpLabel 132 %72 = OpLoad %v2float %21 133 %73 = OpVectorShuffle %v2float %72 %72 0 0 134 %71 = OpDPdx %v2float %73 135 %70 = OpExtInst %v2float %1 FSign %71 136 %76 = OpFOrdEqual %v2bool %70 %75 137 %77 = OpAll %bool %76 138 OpBranch %69 139 %69 = OpLabel 140 %78 = OpPhi %bool %false %60 %77 %68 141 OpSelectionMerge %80 None 142 OpBranchConditional %78 %79 %80 143 %79 = OpLabel 144 %83 = OpLoad %v2float %21 145 %84 = OpVectorShuffle %v2float %83 %83 1 1 146 %82 = OpDPdx %v2float %84 147 %81 = OpExtInst %v2float %1 FSign %82 148 %85 = OpFOrdEqual %v2bool %81 %16 149 %86 = OpAll %bool %85 150 OpBranch %80 151 %80 = OpLabel 152 %87 = OpPhi %bool %false %69 %86 %79 153 OpSelectionMerge %89 None 154 OpBranchConditional %87 %88 %89 155 %88 = OpLabel 156 %92 = OpLoad %v2float %21 157 %91 = OpDPdx %v2float %92 158 %90 = OpExtInst %v2float %1 FSign %91 159 %94 = OpFOrdEqual %v2bool %90 %93 160 %95 = OpAll %bool %94 161 OpBranch %89 162 %89 = OpLabel 163 %96 = OpPhi %bool %false %80 %95 %88 164 OpSelectionMerge %100 None 165 OpBranchConditional %96 %98 %99 166 %98 = OpLabel 167 %101 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 168 %103 = OpLoad %v4float %101 169 OpStore %97 %103 170 OpBranch %100 171 %99 = OpLabel 172 %104 = OpAccessChain %_ptr_Uniform_v4float %7 %int_2 173 %106 = OpLoad %v4float %104 174 OpStore %97 %106 175 OpBranch %100 176 %100 = OpLabel 177 %107 = OpLoad %v4float %97 178 OpReturnValue %107 179 OpFunctionEnd 180