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