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