blob: b3d64ef57f9d0969bd4dd2faa17accbaffa7fd41 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
OpExecutionMode %_entrypoint_v OriginUpperLeft
OpName %sk_FragColor "sk_FragColor"
OpName %sk_Clockwise "sk_Clockwise"
OpName %_UniformBuffer "_UniformBuffer"
OpMemberName %_UniformBuffer 0 "colorGreen"
OpMemberName %_UniformBuffer 1 "colorRed"
OpMemberName %_UniformBuffer 2 "colorBlack"
OpMemberName %_UniformBuffer 3 "colorWhite"
OpMemberName %_UniformBuffer 4 "testInputs"
OpName %_entrypoint_v "_entrypoint_v"
OpName %main "main"
OpName %expectedBW "expectedBW"
OpName %expectedWT "expectedWT"
OpDecorate %sk_FragColor RelaxedPrecision
OpDecorate %sk_FragColor Location 0
OpDecorate %sk_FragColor Index 0
OpDecorate %sk_Clockwise BuiltIn FrontFacing
OpMemberDecorate %_UniformBuffer 0 Offset 0
OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
OpMemberDecorate %_UniformBuffer 1 Offset 16
OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
OpMemberDecorate %_UniformBuffer 2 Offset 32
OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
OpMemberDecorate %_UniformBuffer 3 Offset 48
OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision
OpMemberDecorate %_UniformBuffer 4 Offset 64
OpMemberDecorate %_UniformBuffer 4 RelaxedPrecision
OpDecorate %_UniformBuffer Block
OpDecorate %10 Binding 0
OpDecorate %10 DescriptorSet 0
OpDecorate %expectedBW RelaxedPrecision
OpDecorate %24 RelaxedPrecision
OpDecorate %expectedWT RelaxedPrecision
OpDecorate %27 RelaxedPrecision
OpDecorate %34 RelaxedPrecision
OpDecorate %37 RelaxedPrecision
OpDecorate %39 RelaxedPrecision
OpDecorate %40 RelaxedPrecision
OpDecorate %48 RelaxedPrecision
OpDecorate %50 RelaxedPrecision
OpDecorate %52 RelaxedPrecision
OpDecorate %54 RelaxedPrecision
OpDecorate %62 RelaxedPrecision
OpDecorate %64 RelaxedPrecision
OpDecorate %65 RelaxedPrecision
OpDecorate %66 RelaxedPrecision
OpDecorate %74 RelaxedPrecision
OpDecorate %76 RelaxedPrecision
OpDecorate %77 RelaxedPrecision
OpDecorate %78 RelaxedPrecision
OpDecorate %87 RelaxedPrecision
OpDecorate %88 RelaxedPrecision
OpDecorate %91 RelaxedPrecision
OpDecorate %92 RelaxedPrecision
OpDecorate %93 RelaxedPrecision
OpDecorate %94 RelaxedPrecision
OpDecorate %101 RelaxedPrecision
OpDecorate %102 RelaxedPrecision
OpDecorate %105 RelaxedPrecision
OpDecorate %106 RelaxedPrecision
OpDecorate %107 RelaxedPrecision
OpDecorate %108 RelaxedPrecision
OpDecorate %109 RelaxedPrecision
OpDecorate %118 RelaxedPrecision
OpDecorate %119 RelaxedPrecision
OpDecorate %122 RelaxedPrecision
OpDecorate %123 RelaxedPrecision
OpDecorate %124 RelaxedPrecision
OpDecorate %125 RelaxedPrecision
OpDecorate %126 RelaxedPrecision
OpDecorate %135 RelaxedPrecision
OpDecorate %137 RelaxedPrecision
OpDecorate %138 RelaxedPrecision
OpDecorate %139 RelaxedPrecision
OpDecorate %147 RelaxedPrecision
OpDecorate %148 RelaxedPrecision
OpDecorate %151 RelaxedPrecision
OpDecorate %152 RelaxedPrecision
OpDecorate %153 RelaxedPrecision
OpDecorate %154 RelaxedPrecision
OpDecorate %161 RelaxedPrecision
OpDecorate %162 RelaxedPrecision
OpDecorate %164 RelaxedPrecision
OpDecorate %165 RelaxedPrecision
OpDecorate %166 RelaxedPrecision
OpDecorate %167 RelaxedPrecision
OpDecorate %168 RelaxedPrecision
OpDecorate %176 RelaxedPrecision
OpDecorate %177 RelaxedPrecision
OpDecorate %179 RelaxedPrecision
OpDecorate %180 RelaxedPrecision
OpDecorate %181 RelaxedPrecision
OpDecorate %182 RelaxedPrecision
OpDecorate %183 RelaxedPrecision
OpDecorate %191 RelaxedPrecision
OpDecorate %193 RelaxedPrecision
OpDecorate %194 RelaxedPrecision
OpDecorate %195 RelaxedPrecision
OpDecorate %204 RelaxedPrecision
OpDecorate %206 RelaxedPrecision
OpDecorate %207 RelaxedPrecision
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%sk_FragColor = OpVariable %_ptr_Output_v4float Output
%bool = OpTypeBool
%_ptr_Input_bool = OpTypePointer Input %bool
%sk_Clockwise = OpVariable %_ptr_Input_bool Input
%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float %v4float %v4float
%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
%void = OpTypeVoid
%15 = OpTypeFunction %void
%18 = OpTypeFunction %v4float
%_ptr_Function_v4float = OpTypePointer Function %v4float
%float_0_5 = OpConstant %float 0.5
%float_1 = OpConstant %float 1
%24 = OpConstantComposite %v4float %float_0_5 %float_0_5 %float_0_5 %float_1
%float_2_25 = OpConstant %float 2.25
%27 = OpConstantComposite %v4float %float_1 %float_0_5 %float_1 %float_2_25
%false = OpConstantFalse %bool
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%int_1 = OpConstant %int 1
%float_0 = OpConstant %float 0
%40 = OpConstantComposite %v4float %float_0 %float_1 %float_0 %float_1
%v4bool = OpTypeVector %bool 4
%float_0_25 = OpConstant %float 0.25
%float_0_75 = OpConstant %float 0.75
%54 = OpConstantComposite %v4float %float_0_25 %float_0_75 %float_0 %float_1
%66 = OpConstantComposite %v4float %float_0_75 %float_0_25 %float_0 %float_1
%78 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%int_2 = OpConstant %int 2
%int_3 = OpConstant %int 3
%v2float = OpTypeVector %float 2
%v2bool = OpTypeVector %bool 2
%v3float = OpTypeVector %float 3
%v3bool = OpTypeVector %bool 3
%int_4 = OpConstant %int 4
%166 = OpConstantComposite %v2float %float_0 %float_0_5
%181 = OpConstantComposite %v3float %float_0 %float_0_5 %float_0
%194 = OpConstantComposite %v4float %float_0 %float_0_5 %float_0 %float_1
%_entrypoint_v = OpFunction %void None %15
%16 = OpLabel
%17 = OpFunctionCall %v4float %main
OpStore %sk_FragColor %17
OpReturn
OpFunctionEnd
%main = OpFunction %v4float None %18
%19 = OpLabel
%expectedBW = OpVariable %_ptr_Function_v4float Function
%expectedWT = OpVariable %_ptr_Function_v4float Function
%199 = OpVariable %_ptr_Function_v4float Function
OpStore %expectedBW %24
OpStore %expectedWT %27
%30 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
%34 = OpLoad %v4float %30
%35 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
%37 = OpLoad %v4float %35
%39 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %float_0
%29 = OpExtInst %v4float %1 FMix %34 %37 %39
%41 = OpFOrdEqual %v4bool %29 %40
%43 = OpAll %bool %41
OpSelectionMerge %45 None
OpBranchConditional %43 %44 %45
%44 = OpLabel
%47 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
%48 = OpLoad %v4float %47
%49 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
%50 = OpLoad %v4float %49
%52 = OpCompositeConstruct %v4float %float_0_25 %float_0_25 %float_0_25 %float_0_25
%46 = OpExtInst %v4float %1 FMix %48 %50 %52
%55 = OpFOrdEqual %v4bool %46 %54
%56 = OpAll %bool %55
OpBranch %45
%45 = OpLabel
%57 = OpPhi %bool %false %19 %56 %44
OpSelectionMerge %59 None
OpBranchConditional %57 %58 %59
%58 = OpLabel
%61 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
%62 = OpLoad %v4float %61
%63 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
%64 = OpLoad %v4float %63
%65 = OpCompositeConstruct %v4float %float_0_75 %float_0_75 %float_0_75 %float_0_75
%60 = OpExtInst %v4float %1 FMix %62 %64 %65
%67 = OpFOrdEqual %v4bool %60 %66
%68 = OpAll %bool %67
OpBranch %59
%59 = OpLabel
%69 = OpPhi %bool %false %45 %68 %58
OpSelectionMerge %71 None
OpBranchConditional %69 %70 %71
%70 = OpLabel
%73 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
%74 = OpLoad %v4float %73
%75 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
%76 = OpLoad %v4float %75
%77 = OpCompositeConstruct %v4float %float_1 %float_1 %float_1 %float_1
%72 = OpExtInst %v4float %1 FMix %74 %76 %77
%79 = OpFOrdEqual %v4bool %72 %78
%80 = OpAll %bool %79
OpBranch %71
%71 = OpLabel
%81 = OpPhi %bool %false %59 %80 %70
OpSelectionMerge %83 None
OpBranchConditional %81 %82 %83
%82 = OpLabel
%85 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
%87 = OpLoad %v4float %85
%88 = OpCompositeExtract %float %87 0
%89 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
%91 = OpLoad %v4float %89
%92 = OpCompositeExtract %float %91 0
%84 = OpExtInst %float %1 FMix %88 %92 %float_0_5
%93 = OpLoad %v4float %expectedBW
%94 = OpCompositeExtract %float %93 0
%95 = OpFOrdEqual %bool %84 %94
OpBranch %83
%83 = OpLabel
%96 = OpPhi %bool %false %71 %95 %82
OpSelectionMerge %98 None
OpBranchConditional %96 %97 %98
%97 = OpLabel
%100 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
%101 = OpLoad %v4float %100
%102 = OpVectorShuffle %v2float %101 %101 0 1
%104 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
%105 = OpLoad %v4float %104
%106 = OpVectorShuffle %v2float %105 %105 0 1
%107 = OpCompositeConstruct %v2float %float_0_5 %float_0_5
%99 = OpExtInst %v2float %1 FMix %102 %106 %107
%108 = OpLoad %v4float %expectedBW
%109 = OpVectorShuffle %v2float %108 %108 0 1
%110 = OpFOrdEqual %v2bool %99 %109
%112 = OpAll %bool %110
OpBranch %98
%98 = OpLabel
%113 = OpPhi %bool %false %83 %112 %97
OpSelectionMerge %115 None
OpBranchConditional %113 %114 %115
%114 = OpLabel
%117 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
%118 = OpLoad %v4float %117
%119 = OpVectorShuffle %v3float %118 %118 0 1 2
%121 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
%122 = OpLoad %v4float %121
%123 = OpVectorShuffle %v3float %122 %122 0 1 2
%124 = OpCompositeConstruct %v3float %float_0_5 %float_0_5 %float_0_5
%116 = OpExtInst %v3float %1 FMix %119 %123 %124
%125 = OpLoad %v4float %expectedBW
%126 = OpVectorShuffle %v3float %125 %125 0 1 2
%127 = OpFOrdEqual %v3bool %116 %126
%129 = OpAll %bool %127
OpBranch %115
%115 = OpLabel
%130 = OpPhi %bool %false %98 %129 %114
OpSelectionMerge %132 None
OpBranchConditional %130 %131 %132
%131 = OpLabel
%134 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
%135 = OpLoad %v4float %134
%136 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
%137 = OpLoad %v4float %136
%138 = OpCompositeConstruct %v4float %float_0_5 %float_0_5 %float_0_5 %float_0_5
%133 = OpExtInst %v4float %1 FMix %135 %137 %138
%139 = OpLoad %v4float %expectedBW
%140 = OpFOrdEqual %v4bool %133 %139
%141 = OpAll %bool %140
OpBranch %132
%132 = OpLabel
%142 = OpPhi %bool %false %115 %141 %131
OpSelectionMerge %144 None
OpBranchConditional %142 %143 %144
%143 = OpLabel
%146 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
%147 = OpLoad %v4float %146
%148 = OpCompositeExtract %float %147 0
%149 = OpAccessChain %_ptr_Uniform_v4float %10 %int_4
%151 = OpLoad %v4float %149
%152 = OpCompositeExtract %float %151 0
%145 = OpExtInst %float %1 FMix %148 %152 %float_0
%153 = OpLoad %v4float %expectedWT
%154 = OpCompositeExtract %float %153 0
%155 = OpFOrdEqual %bool %145 %154
OpBranch %144
%144 = OpLabel
%156 = OpPhi %bool %false %132 %155 %143
OpSelectionMerge %158 None
OpBranchConditional %156 %157 %158
%157 = OpLabel
%160 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
%161 = OpLoad %v4float %160
%162 = OpVectorShuffle %v2float %161 %161 0 1
%163 = OpAccessChain %_ptr_Uniform_v4float %10 %int_4
%164 = OpLoad %v4float %163
%165 = OpVectorShuffle %v2float %164 %164 0 1
%159 = OpExtInst %v2float %1 FMix %162 %165 %166
%167 = OpLoad %v4float %expectedWT
%168 = OpVectorShuffle %v2float %167 %167 0 1
%169 = OpFOrdEqual %v2bool %159 %168
%170 = OpAll %bool %169
OpBranch %158
%158 = OpLabel
%171 = OpPhi %bool %false %144 %170 %157
OpSelectionMerge %173 None
OpBranchConditional %171 %172 %173
%172 = OpLabel
%175 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
%176 = OpLoad %v4float %175
%177 = OpVectorShuffle %v3float %176 %176 0 1 2
%178 = OpAccessChain %_ptr_Uniform_v4float %10 %int_4
%179 = OpLoad %v4float %178
%180 = OpVectorShuffle %v3float %179 %179 0 1 2
%174 = OpExtInst %v3float %1 FMix %177 %180 %181
%182 = OpLoad %v4float %expectedWT
%183 = OpVectorShuffle %v3float %182 %182 0 1 2
%184 = OpFOrdEqual %v3bool %174 %183
%185 = OpAll %bool %184
OpBranch %173
%173 = OpLabel
%186 = OpPhi %bool %false %158 %185 %172
OpSelectionMerge %188 None
OpBranchConditional %186 %187 %188
%187 = OpLabel
%190 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
%191 = OpLoad %v4float %190
%192 = OpAccessChain %_ptr_Uniform_v4float %10 %int_4
%193 = OpLoad %v4float %192
%189 = OpExtInst %v4float %1 FMix %191 %193 %194
%195 = OpLoad %v4float %expectedWT
%196 = OpFOrdEqual %v4bool %189 %195
%197 = OpAll %bool %196
OpBranch %188
%188 = OpLabel
%198 = OpPhi %bool %false %173 %197 %187
OpSelectionMerge %202 None
OpBranchConditional %198 %200 %201
%200 = OpLabel
%203 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
%204 = OpLoad %v4float %203
OpStore %199 %204
OpBranch %202
%201 = OpLabel
%205 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
%206 = OpLoad %v4float %205
OpStore %199 %206
OpBranch %202
%202 = OpLabel
%207 = OpLoad %v4float %199
OpReturnValue %207
OpFunctionEnd