1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "testInputs"
10OpMemberName %_UniformBuffer 1 "colorGreen"
11OpMemberName %_UniformBuffer 2 "colorRed"
12OpName %_entrypoint_v "_entrypoint_v"
13OpName %main "main"
14OpName %expected "expected"
15OpDecorate %sk_FragColor RelaxedPrecision
16OpDecorate %sk_FragColor Location 0
17OpDecorate %sk_FragColor Index 0
18OpDecorate %sk_Clockwise BuiltIn FrontFacing
19OpMemberDecorate %_UniformBuffer 0 Offset 0
20OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
21OpMemberDecorate %_UniformBuffer 1 Offset 16
22OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
23OpMemberDecorate %_UniformBuffer 2 Offset 32
24OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
25OpDecorate %_UniformBuffer Block
26OpDecorate %10 Binding 0
27OpDecorate %10 DescriptorSet 0
28OpDecorate %38 RelaxedPrecision
29OpDecorate %39 RelaxedPrecision
30OpDecorate %48 RelaxedPrecision
31OpDecorate %49 RelaxedPrecision
32OpDecorate %50 RelaxedPrecision
33OpDecorate %52 RelaxedPrecision
34OpDecorate %66 RelaxedPrecision
35OpDecorate %67 RelaxedPrecision
36OpDecorate %69 RelaxedPrecision
37OpDecorate %71 RelaxedPrecision
38OpDecorate %73 RelaxedPrecision
39OpDecorate %87 RelaxedPrecision
40OpDecorate %88 RelaxedPrecision
41OpDecorate %90 RelaxedPrecision
42OpDecorate %92 RelaxedPrecision
43OpDecorate %94 RelaxedPrecision
44OpDecorate %136 RelaxedPrecision
45OpDecorate %139 RelaxedPrecision
46OpDecorate %140 RelaxedPrecision
47%float = OpTypeFloat 32
48%v4float = OpTypeVector %float 4
49%_ptr_Output_v4float = OpTypePointer Output %v4float
50%sk_FragColor = OpVariable %_ptr_Output_v4float Output
51%bool = OpTypeBool
52%_ptr_Input_bool = OpTypePointer Input %bool
53%sk_Clockwise = OpVariable %_ptr_Input_bool Input
54%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float
55%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
56%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
57%void = OpTypeVoid
58%15 = OpTypeFunction %void
59%v2float = OpTypeVector %float 2
60%float_0 = OpConstant %float 0
61%19 = OpConstantComposite %v2float %float_0 %float_0
62%_ptr_Function_v2float = OpTypePointer Function %v2float
63%23 = OpTypeFunction %v4float %_ptr_Function_v2float
64%int = OpTypeInt 32 1
65%v4int = OpTypeVector %int 4
66%_ptr_Function_v4int = OpTypePointer Function %v4int
67%int_n1 = OpConstant %int -1
68%int_0 = OpConstant %int 0
69%int_1 = OpConstant %int 1
70%33 = OpConstantComposite %v4int %int_n1 %int_0 %int_0 %int_1
71%false = OpConstantFalse %bool
72%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
73%v2int = OpTypeVector %int 2
74%v2bool = OpTypeVector %bool 2
75%v3float = OpTypeVector %float 3
76%v3int = OpTypeVector %int 3
77%v3bool = OpTypeVector %bool 3
78%v4bool = OpTypeVector %bool 4
79%110 = OpConstantComposite %v2int %int_n1 %int_0
80%118 = OpConstantComposite %v3int %int_n1 %int_0 %int_0
81%_ptr_Function_v4float = OpTypePointer Function %v4float
82%int_2 = OpConstant %int 2
83%_entrypoint_v = OpFunction %void None %15
84%16 = OpLabel
85%20 = OpVariable %_ptr_Function_v2float Function
86OpStore %20 %19
87%22 = OpFunctionCall %v4float %main %20
88OpStore %sk_FragColor %22
89OpReturn
90OpFunctionEnd
91%main = OpFunction %v4float None %23
92%24 = OpFunctionParameter %_ptr_Function_v2float
93%25 = OpLabel
94%expected = OpVariable %_ptr_Function_v4int Function
95%130 = OpVariable %_ptr_Function_v4float Function
96OpStore %expected %33
97%36 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
98%38 = OpLoad %v4float %36
99%39 = OpCompositeExtract %float %38 0
100%40 = OpConvertFToS %int %39
101%35 = OpExtInst %int %1 SSign %40
102%41 = OpLoad %v4int %expected
103%42 = OpCompositeExtract %int %41 0
104%43 = OpIEqual %bool %35 %42
105OpSelectionMerge %45 None
106OpBranchConditional %43 %44 %45
107%44 = OpLabel
108%47 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
109%48 = OpLoad %v4float %47
110%49 = OpVectorShuffle %v2float %48 %48 0 1
111%50 = OpCompositeExtract %float %49 0
112%51 = OpConvertFToS %int %50
113%52 = OpCompositeExtract %float %49 1
114%53 = OpConvertFToS %int %52
115%54 = OpCompositeConstruct %v2int %51 %53
116%46 = OpExtInst %v2int %1 SSign %54
117%56 = OpLoad %v4int %expected
118%57 = OpVectorShuffle %v2int %56 %56 0 1
119%58 = OpIEqual %v2bool %46 %57
120%60 = OpAll %bool %58
121OpBranch %45
122%45 = OpLabel
123%61 = OpPhi %bool %false %25 %60 %44
124OpSelectionMerge %63 None
125OpBranchConditional %61 %62 %63
126%62 = OpLabel
127%65 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
128%66 = OpLoad %v4float %65
129%67 = OpVectorShuffle %v3float %66 %66 0 1 2
130%69 = OpCompositeExtract %float %67 0
131%70 = OpConvertFToS %int %69
132%71 = OpCompositeExtract %float %67 1
133%72 = OpConvertFToS %int %71
134%73 = OpCompositeExtract %float %67 2
135%74 = OpConvertFToS %int %73
136%75 = OpCompositeConstruct %v3int %70 %72 %74
137%64 = OpExtInst %v3int %1 SSign %75
138%77 = OpLoad %v4int %expected
139%78 = OpVectorShuffle %v3int %77 %77 0 1 2
140%79 = OpIEqual %v3bool %64 %78
141%81 = OpAll %bool %79
142OpBranch %63
143%63 = OpLabel
144%82 = OpPhi %bool %false %45 %81 %62
145OpSelectionMerge %84 None
146OpBranchConditional %82 %83 %84
147%83 = OpLabel
148%86 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
149%87 = OpLoad %v4float %86
150%88 = OpCompositeExtract %float %87 0
151%89 = OpConvertFToS %int %88
152%90 = OpCompositeExtract %float %87 1
153%91 = OpConvertFToS %int %90
154%92 = OpCompositeExtract %float %87 2
155%93 = OpConvertFToS %int %92
156%94 = OpCompositeExtract %float %87 3
157%95 = OpConvertFToS %int %94
158%96 = OpCompositeConstruct %v4int %89 %91 %93 %95
159%85 = OpExtInst %v4int %1 SSign %96
160%97 = OpLoad %v4int %expected
161%98 = OpIEqual %v4bool %85 %97
162%100 = OpAll %bool %98
163OpBranch %84
164%84 = OpLabel
165%101 = OpPhi %bool %false %63 %100 %83
166OpSelectionMerge %103 None
167OpBranchConditional %101 %102 %103
168%102 = OpLabel
169%104 = OpLoad %v4int %expected
170%105 = OpCompositeExtract %int %104 0
171%106 = OpIEqual %bool %int_n1 %105
172OpBranch %103
173%103 = OpLabel
174%107 = OpPhi %bool %false %84 %106 %102
175OpSelectionMerge %109 None
176OpBranchConditional %107 %108 %109
177%108 = OpLabel
178%111 = OpLoad %v4int %expected
179%112 = OpVectorShuffle %v2int %111 %111 0 1
180%113 = OpIEqual %v2bool %110 %112
181%114 = OpAll %bool %113
182OpBranch %109
183%109 = OpLabel
184%115 = OpPhi %bool %false %103 %114 %108
185OpSelectionMerge %117 None
186OpBranchConditional %115 %116 %117
187%116 = OpLabel
188%119 = OpLoad %v4int %expected
189%120 = OpVectorShuffle %v3int %119 %119 0 1 2
190%121 = OpIEqual %v3bool %118 %120
191%122 = OpAll %bool %121
192OpBranch %117
193%117 = OpLabel
194%123 = OpPhi %bool %false %109 %122 %116
195OpSelectionMerge %125 None
196OpBranchConditional %123 %124 %125
197%124 = OpLabel
198%126 = OpLoad %v4int %expected
199%127 = OpIEqual %v4bool %33 %126
200%128 = OpAll %bool %127
201OpBranch %125
202%125 = OpLabel
203%129 = OpPhi %bool %false %117 %128 %124
204OpSelectionMerge %134 None
205OpBranchConditional %129 %132 %133
206%132 = OpLabel
207%135 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
208%136 = OpLoad %v4float %135
209OpStore %130 %136
210OpBranch %134
211%133 = OpLabel
212%137 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
213%139 = OpLoad %v4float %137
214OpStore %130 %139
215OpBranch %134
216%134 = OpLabel
217%140 = OpLoad %v4float %130
218OpReturnValue %140
219OpFunctionEnd
220