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_ciOpMemberName %_UniformBuffer 2 "testMatrix2x2"
12cb93a386Sopenharmony_ciOpMemberName %_UniformBuffer 3 "testMatrix3x3"
13cb93a386Sopenharmony_ciOpName %_entrypoint_v "_entrypoint_v"
14cb93a386Sopenharmony_ciOpName %main "main"
15cb93a386Sopenharmony_ciOpName %h22 "h22"
16cb93a386Sopenharmony_ciOpName %f22 "f22"
17cb93a386Sopenharmony_ciOpName %h33 "h33"
18cb93a386Sopenharmony_ciOpDecorate %sk_FragColor RelaxedPrecision
19cb93a386Sopenharmony_ciOpDecorate %sk_FragColor Location 0
20cb93a386Sopenharmony_ciOpDecorate %sk_FragColor Index 0
21cb93a386Sopenharmony_ciOpDecorate %sk_Clockwise BuiltIn FrontFacing
22cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 0 Offset 0
23cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
24cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 1 Offset 16
25cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
26cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 2 Offset 32
27cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 2 ColMajor
28cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 2 MatrixStride 16
29cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 3 Offset 64
30cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 3 ColMajor
31cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 3 MatrixStride 16
32cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 3 RelaxedPrecision
33cb93a386Sopenharmony_ciOpDecorate %_UniformBuffer Block
34cb93a386Sopenharmony_ciOpDecorate %10 Binding 0
35cb93a386Sopenharmony_ciOpDecorate %10 DescriptorSet 0
36cb93a386Sopenharmony_ciOpDecorate %h22 RelaxedPrecision
37cb93a386Sopenharmony_ciOpDecorate %34 RelaxedPrecision
38cb93a386Sopenharmony_ciOpDecorate %35 RelaxedPrecision
39cb93a386Sopenharmony_ciOpDecorate %36 RelaxedPrecision
40cb93a386Sopenharmony_ciOpDecorate %h33 RelaxedPrecision
41cb93a386Sopenharmony_ciOpDecorate %61 RelaxedPrecision
42cb93a386Sopenharmony_ciOpDecorate %63 RelaxedPrecision
43cb93a386Sopenharmony_ciOpDecorate %64 RelaxedPrecision
44cb93a386Sopenharmony_ciOpDecorate %65 RelaxedPrecision
45cb93a386Sopenharmony_ciOpDecorate %66 RelaxedPrecision
46cb93a386Sopenharmony_ciOpDecorate %67 RelaxedPrecision
47cb93a386Sopenharmony_ciOpDecorate %68 RelaxedPrecision
48cb93a386Sopenharmony_ciOpDecorate %69 RelaxedPrecision
49cb93a386Sopenharmony_ciOpDecorate %70 RelaxedPrecision
50cb93a386Sopenharmony_ciOpDecorate %71 RelaxedPrecision
51cb93a386Sopenharmony_ciOpDecorate %72 RelaxedPrecision
52cb93a386Sopenharmony_ciOpDecorate %73 RelaxedPrecision
53cb93a386Sopenharmony_ciOpDecorate %74 RelaxedPrecision
54cb93a386Sopenharmony_ciOpDecorate %75 RelaxedPrecision
55cb93a386Sopenharmony_ciOpDecorate %76 RelaxedPrecision
56cb93a386Sopenharmony_ciOpDecorate %78 RelaxedPrecision
57cb93a386Sopenharmony_ciOpDecorate %79 RelaxedPrecision
58cb93a386Sopenharmony_ciOpDecorate %80 RelaxedPrecision
59cb93a386Sopenharmony_ciOpDecorate %81 RelaxedPrecision
60cb93a386Sopenharmony_ciOpDecorate %111 RelaxedPrecision
61cb93a386Sopenharmony_ciOpDecorate %118 RelaxedPrecision
62cb93a386Sopenharmony_ciOpDecorate %119 RelaxedPrecision
63cb93a386Sopenharmony_ciOpDecorate %120 RelaxedPrecision
64cb93a386Sopenharmony_ciOpDecorate %121 RelaxedPrecision
65cb93a386Sopenharmony_ciOpDecorate %146 RelaxedPrecision
66cb93a386Sopenharmony_ciOpDecorate %149 RelaxedPrecision
67cb93a386Sopenharmony_ciOpDecorate %150 RelaxedPrecision
68cb93a386Sopenharmony_ci%float = OpTypeFloat 32
69cb93a386Sopenharmony_ci%v4float = OpTypeVector %float 4
70cb93a386Sopenharmony_ci%_ptr_Output_v4float = OpTypePointer Output %v4float
71cb93a386Sopenharmony_ci%sk_FragColor = OpVariable %_ptr_Output_v4float Output
72cb93a386Sopenharmony_ci%bool = OpTypeBool
73cb93a386Sopenharmony_ci%_ptr_Input_bool = OpTypePointer Input %bool
74cb93a386Sopenharmony_ci%sk_Clockwise = OpVariable %_ptr_Input_bool Input
75cb93a386Sopenharmony_ci%v2float = OpTypeVector %float 2
76cb93a386Sopenharmony_ci%mat2v2float = OpTypeMatrix %v2float 2
77cb93a386Sopenharmony_ci%v3float = OpTypeVector %float 3
78cb93a386Sopenharmony_ci%mat3v3float = OpTypeMatrix %v3float 3
79cb93a386Sopenharmony_ci%_UniformBuffer = OpTypeStruct %v4float %v4float %mat2v2float %mat3v3float
80cb93a386Sopenharmony_ci%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
81cb93a386Sopenharmony_ci%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
82cb93a386Sopenharmony_ci%void = OpTypeVoid
83cb93a386Sopenharmony_ci%19 = OpTypeFunction %void
84cb93a386Sopenharmony_ci%float_0 = OpConstant %float 0
85cb93a386Sopenharmony_ci%22 = OpConstantComposite %v2float %float_0 %float_0
86cb93a386Sopenharmony_ci%_ptr_Function_v2float = OpTypePointer Function %v2float
87cb93a386Sopenharmony_ci%26 = OpTypeFunction %v4float %_ptr_Function_v2float
88cb93a386Sopenharmony_ci%_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float
89cb93a386Sopenharmony_ci%float_5 = OpConstant %float 5
90cb93a386Sopenharmony_ci%float_10 = OpConstant %float 10
91cb93a386Sopenharmony_ci%float_15 = OpConstant %float 15
92cb93a386Sopenharmony_ci%_ptr_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float
93cb93a386Sopenharmony_ci%int = OpTypeInt 32 1
94cb93a386Sopenharmony_ci%int_2 = OpConstant %int 2
95cb93a386Sopenharmony_ci%float_1 = OpConstant %float 1
96cb93a386Sopenharmony_ci%_ptr_Function_mat3v3float = OpTypePointer Function %mat3v3float
97cb93a386Sopenharmony_ci%_ptr_Uniform_mat3v3float = OpTypePointer Uniform %mat3v3float
98cb93a386Sopenharmony_ci%int_3 = OpConstant %int 3
99cb93a386Sopenharmony_ci%float_2 = OpConstant %float 2
100cb93a386Sopenharmony_ci%false = OpConstantFalse %bool
101cb93a386Sopenharmony_ci%v2bool = OpTypeVector %bool 2
102cb93a386Sopenharmony_ci%float_4 = OpConstant %float 4
103cb93a386Sopenharmony_ci%float_6 = OpConstant %float 6
104cb93a386Sopenharmony_ci%float_8 = OpConstant %float 8
105cb93a386Sopenharmony_ci%float_12 = OpConstant %float 12
106cb93a386Sopenharmony_ci%float_14 = OpConstant %float 14
107cb93a386Sopenharmony_ci%float_16 = OpConstant %float 16
108cb93a386Sopenharmony_ci%float_18 = OpConstant %float 18
109cb93a386Sopenharmony_ci%v3bool = OpTypeVector %bool 3
110cb93a386Sopenharmony_ci%_ptr_Function_v4float = OpTypePointer Function %v4float
111cb93a386Sopenharmony_ci%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
112cb93a386Sopenharmony_ci%int_0 = OpConstant %int 0
113cb93a386Sopenharmony_ci%int_1 = OpConstant %int 1
114cb93a386Sopenharmony_ci%_entrypoint_v = OpFunction %void None %19
115cb93a386Sopenharmony_ci%20 = OpLabel
116cb93a386Sopenharmony_ci%23 = OpVariable %_ptr_Function_v2float Function
117cb93a386Sopenharmony_ciOpStore %23 %22
118cb93a386Sopenharmony_ci%25 = OpFunctionCall %v4float %main %23
119cb93a386Sopenharmony_ciOpStore %sk_FragColor %25
120cb93a386Sopenharmony_ciOpReturn
121cb93a386Sopenharmony_ciOpFunctionEnd
122cb93a386Sopenharmony_ci%main = OpFunction %v4float None %26
123cb93a386Sopenharmony_ci%27 = OpFunctionParameter %_ptr_Function_v2float
124cb93a386Sopenharmony_ci%28 = OpLabel
125cb93a386Sopenharmony_ci%h22 = OpVariable %_ptr_Function_mat2v2float Function
126cb93a386Sopenharmony_ci%f22 = OpVariable %_ptr_Function_mat2v2float Function
127cb93a386Sopenharmony_ci%h33 = OpVariable %_ptr_Function_mat3v3float Function
128cb93a386Sopenharmony_ci%138 = OpVariable %_ptr_Function_v4float Function
129cb93a386Sopenharmony_ci%34 = OpCompositeConstruct %v2float %float_0 %float_5
130cb93a386Sopenharmony_ci%35 = OpCompositeConstruct %v2float %float_10 %float_15
131cb93a386Sopenharmony_ci%36 = OpCompositeConstruct %mat2v2float %34 %35
132cb93a386Sopenharmony_ciOpStore %h22 %36
133cb93a386Sopenharmony_ci%39 = OpAccessChain %_ptr_Uniform_mat2v2float %10 %int_2
134cb93a386Sopenharmony_ci%43 = OpLoad %mat2v2float %39
135cb93a386Sopenharmony_ci%46 = OpCompositeConstruct %v2float %float_1 %float_0
136cb93a386Sopenharmony_ci%47 = OpCompositeConstruct %v2float %float_0 %float_1
137cb93a386Sopenharmony_ci%45 = OpCompositeConstruct %mat2v2float %46 %47
138cb93a386Sopenharmony_ci%48 = OpCompositeExtract %v2float %43 0
139cb93a386Sopenharmony_ci%49 = OpCompositeExtract %v2float %45 0
140cb93a386Sopenharmony_ci%50 = OpFMul %v2float %48 %49
141cb93a386Sopenharmony_ci%51 = OpCompositeExtract %v2float %43 1
142cb93a386Sopenharmony_ci%52 = OpCompositeExtract %v2float %45 1
143cb93a386Sopenharmony_ci%53 = OpFMul %v2float %51 %52
144cb93a386Sopenharmony_ci%54 = OpCompositeConstruct %mat2v2float %50 %53
145cb93a386Sopenharmony_ciOpStore %f22 %54
146cb93a386Sopenharmony_ci%58 = OpAccessChain %_ptr_Uniform_mat3v3float %10 %int_3
147cb93a386Sopenharmony_ci%61 = OpLoad %mat3v3float %58
148cb93a386Sopenharmony_ci%63 = OpCompositeConstruct %v3float %float_2 %float_2 %float_2
149cb93a386Sopenharmony_ci%64 = OpCompositeConstruct %v3float %float_2 %float_2 %float_2
150cb93a386Sopenharmony_ci%65 = OpCompositeConstruct %v3float %float_2 %float_2 %float_2
151cb93a386Sopenharmony_ci%66 = OpCompositeConstruct %mat3v3float %63 %64 %65
152cb93a386Sopenharmony_ci%67 = OpCompositeExtract %v3float %61 0
153cb93a386Sopenharmony_ci%68 = OpCompositeExtract %v3float %66 0
154cb93a386Sopenharmony_ci%69 = OpFMul %v3float %67 %68
155cb93a386Sopenharmony_ci%70 = OpCompositeExtract %v3float %61 1
156cb93a386Sopenharmony_ci%71 = OpCompositeExtract %v3float %66 1
157cb93a386Sopenharmony_ci%72 = OpFMul %v3float %70 %71
158cb93a386Sopenharmony_ci%73 = OpCompositeExtract %v3float %61 2
159cb93a386Sopenharmony_ci%74 = OpCompositeExtract %v3float %66 2
160cb93a386Sopenharmony_ci%75 = OpFMul %v3float %73 %74
161cb93a386Sopenharmony_ci%76 = OpCompositeConstruct %mat3v3float %69 %72 %75
162cb93a386Sopenharmony_ciOpStore %h33 %76
163cb93a386Sopenharmony_ci%78 = OpLoad %mat2v2float %h22
164cb93a386Sopenharmony_ci%79 = OpCompositeConstruct %v2float %float_0 %float_5
165cb93a386Sopenharmony_ci%80 = OpCompositeConstruct %v2float %float_10 %float_15
166cb93a386Sopenharmony_ci%81 = OpCompositeConstruct %mat2v2float %79 %80
167cb93a386Sopenharmony_ci%83 = OpCompositeExtract %v2float %78 0
168cb93a386Sopenharmony_ci%84 = OpCompositeExtract %v2float %81 0
169cb93a386Sopenharmony_ci%85 = OpFOrdEqual %v2bool %83 %84
170cb93a386Sopenharmony_ci%86 = OpAll %bool %85
171cb93a386Sopenharmony_ci%87 = OpCompositeExtract %v2float %78 1
172cb93a386Sopenharmony_ci%88 = OpCompositeExtract %v2float %81 1
173cb93a386Sopenharmony_ci%89 = OpFOrdEqual %v2bool %87 %88
174cb93a386Sopenharmony_ci%90 = OpAll %bool %89
175cb93a386Sopenharmony_ci%91 = OpLogicalAnd %bool %86 %90
176cb93a386Sopenharmony_ciOpSelectionMerge %93 None
177cb93a386Sopenharmony_ciOpBranchConditional %91 %92 %93
178cb93a386Sopenharmony_ci%92 = OpLabel
179cb93a386Sopenharmony_ci%94 = OpLoad %mat2v2float %f22
180cb93a386Sopenharmony_ci%96 = OpCompositeConstruct %v2float %float_1 %float_0
181cb93a386Sopenharmony_ci%97 = OpCompositeConstruct %v2float %float_0 %float_4
182cb93a386Sopenharmony_ci%98 = OpCompositeConstruct %mat2v2float %96 %97
183cb93a386Sopenharmony_ci%99 = OpCompositeExtract %v2float %94 0
184cb93a386Sopenharmony_ci%100 = OpCompositeExtract %v2float %98 0
185cb93a386Sopenharmony_ci%101 = OpFOrdEqual %v2bool %99 %100
186cb93a386Sopenharmony_ci%102 = OpAll %bool %101
187cb93a386Sopenharmony_ci%103 = OpCompositeExtract %v2float %94 1
188cb93a386Sopenharmony_ci%104 = OpCompositeExtract %v2float %98 1
189cb93a386Sopenharmony_ci%105 = OpFOrdEqual %v2bool %103 %104
190cb93a386Sopenharmony_ci%106 = OpAll %bool %105
191cb93a386Sopenharmony_ci%107 = OpLogicalAnd %bool %102 %106
192cb93a386Sopenharmony_ciOpBranch %93
193cb93a386Sopenharmony_ci%93 = OpLabel
194cb93a386Sopenharmony_ci%108 = OpPhi %bool %false %28 %107 %92
195cb93a386Sopenharmony_ciOpSelectionMerge %110 None
196cb93a386Sopenharmony_ciOpBranchConditional %108 %109 %110
197cb93a386Sopenharmony_ci%109 = OpLabel
198cb93a386Sopenharmony_ci%111 = OpLoad %mat3v3float %h33
199cb93a386Sopenharmony_ci%118 = OpCompositeConstruct %v3float %float_2 %float_4 %float_6
200cb93a386Sopenharmony_ci%119 = OpCompositeConstruct %v3float %float_8 %float_10 %float_12
201cb93a386Sopenharmony_ci%120 = OpCompositeConstruct %v3float %float_14 %float_16 %float_18
202cb93a386Sopenharmony_ci%121 = OpCompositeConstruct %mat3v3float %118 %119 %120
203cb93a386Sopenharmony_ci%123 = OpCompositeExtract %v3float %111 0
204cb93a386Sopenharmony_ci%124 = OpCompositeExtract %v3float %121 0
205cb93a386Sopenharmony_ci%125 = OpFOrdEqual %v3bool %123 %124
206cb93a386Sopenharmony_ci%126 = OpAll %bool %125
207cb93a386Sopenharmony_ci%127 = OpCompositeExtract %v3float %111 1
208cb93a386Sopenharmony_ci%128 = OpCompositeExtract %v3float %121 1
209cb93a386Sopenharmony_ci%129 = OpFOrdEqual %v3bool %127 %128
210cb93a386Sopenharmony_ci%130 = OpAll %bool %129
211cb93a386Sopenharmony_ci%131 = OpLogicalAnd %bool %126 %130
212cb93a386Sopenharmony_ci%132 = OpCompositeExtract %v3float %111 2
213cb93a386Sopenharmony_ci%133 = OpCompositeExtract %v3float %121 2
214cb93a386Sopenharmony_ci%134 = OpFOrdEqual %v3bool %132 %133
215cb93a386Sopenharmony_ci%135 = OpAll %bool %134
216cb93a386Sopenharmony_ci%136 = OpLogicalAnd %bool %131 %135
217cb93a386Sopenharmony_ciOpBranch %110
218cb93a386Sopenharmony_ci%110 = OpLabel
219cb93a386Sopenharmony_ci%137 = OpPhi %bool %false %93 %136 %109
220cb93a386Sopenharmony_ciOpSelectionMerge %142 None
221cb93a386Sopenharmony_ciOpBranchConditional %137 %140 %141
222cb93a386Sopenharmony_ci%140 = OpLabel
223cb93a386Sopenharmony_ci%143 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
224cb93a386Sopenharmony_ci%146 = OpLoad %v4float %143
225cb93a386Sopenharmony_ciOpStore %138 %146
226cb93a386Sopenharmony_ciOpBranch %142
227cb93a386Sopenharmony_ci%141 = OpLabel
228cb93a386Sopenharmony_ci%147 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
229cb93a386Sopenharmony_ci%149 = OpLoad %v4float %147
230cb93a386Sopenharmony_ciOpStore %138 %149
231cb93a386Sopenharmony_ciOpBranch %142
232cb93a386Sopenharmony_ci%142 = OpLabel
233cb93a386Sopenharmony_ci%150 = OpLoad %v4float %138
234cb93a386Sopenharmony_ciOpReturnValue %150
235cb93a386Sopenharmony_ciOpFunctionEnd
236