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 %value "value"
14cb93a386Sopenharmony_ciOpName %exp "exp"
15cb93a386Sopenharmony_ciOpName %result "result"
16cb93a386Sopenharmony_ciOpName %ok "ok"
17cb93a386Sopenharmony_ciOpDecorate %sk_FragColor RelaxedPrecision
18cb93a386Sopenharmony_ciOpDecorate %sk_FragColor Location 0
19cb93a386Sopenharmony_ciOpDecorate %sk_FragColor Index 0
20cb93a386Sopenharmony_ciOpDecorate %sk_Clockwise BuiltIn FrontFacing
21cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 0 Offset 0
22cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
23cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 1 Offset 16
24cb93a386Sopenharmony_ciOpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
25cb93a386Sopenharmony_ciOpDecorate %_UniformBuffer Block
26cb93a386Sopenharmony_ciOpDecorate %10 Binding 0
27cb93a386Sopenharmony_ciOpDecorate %10 DescriptorSet 0
28cb93a386Sopenharmony_ciOpDecorate %32 RelaxedPrecision
29cb93a386Sopenharmony_ciOpDecorate %33 RelaxedPrecision
30cb93a386Sopenharmony_ciOpDecorate %35 RelaxedPrecision
31cb93a386Sopenharmony_ciOpDecorate %124 RelaxedPrecision
32cb93a386Sopenharmony_ciOpDecorate %130 RelaxedPrecision
33cb93a386Sopenharmony_ciOpDecorate %132 RelaxedPrecision
34cb93a386Sopenharmony_ciOpDecorate %133 RelaxedPrecision
35cb93a386Sopenharmony_ci%float = OpTypeFloat 32
36cb93a386Sopenharmony_ci%v4float = OpTypeVector %float 4
37cb93a386Sopenharmony_ci%_ptr_Output_v4float = OpTypePointer Output %v4float
38cb93a386Sopenharmony_ci%sk_FragColor = OpVariable %_ptr_Output_v4float Output
39cb93a386Sopenharmony_ci%bool = OpTypeBool
40cb93a386Sopenharmony_ci%_ptr_Input_bool = OpTypePointer Input %bool
41cb93a386Sopenharmony_ci%sk_Clockwise = OpVariable %_ptr_Input_bool Input
42cb93a386Sopenharmony_ci%_UniformBuffer = OpTypeStruct %v4float %v4float
43cb93a386Sopenharmony_ci%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
44cb93a386Sopenharmony_ci%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
45cb93a386Sopenharmony_ci%void = OpTypeVoid
46cb93a386Sopenharmony_ci%15 = OpTypeFunction %void
47cb93a386Sopenharmony_ci%v2float = OpTypeVector %float 2
48cb93a386Sopenharmony_ci%float_0 = OpConstant %float 0
49cb93a386Sopenharmony_ci%19 = OpConstantComposite %v2float %float_0 %float_0
50cb93a386Sopenharmony_ci%_ptr_Function_v2float = OpTypePointer Function %v2float
51cb93a386Sopenharmony_ci%23 = OpTypeFunction %v4float %_ptr_Function_v2float
52cb93a386Sopenharmony_ci%_ptr_Function_v4float = OpTypePointer Function %v4float
53cb93a386Sopenharmony_ci%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
54cb93a386Sopenharmony_ci%int = OpTypeInt 32 1
55cb93a386Sopenharmony_ci%int_0 = OpConstant %int 0
56cb93a386Sopenharmony_ci%float_6 = OpConstant %float 6
57cb93a386Sopenharmony_ci%v4int = OpTypeVector %int 4
58cb93a386Sopenharmony_ci%_ptr_Function_v4int = OpTypePointer Function %v4int
59cb93a386Sopenharmony_ci%v4bool = OpTypeVector %bool 4
60cb93a386Sopenharmony_ci%_ptr_Function_v4bool = OpTypePointer Function %v4bool
61cb93a386Sopenharmony_ci%_ptr_Function_int = OpTypePointer Function %int
62cb93a386Sopenharmony_ci%_ptr_Function_float = OpTypePointer Function %float
63cb93a386Sopenharmony_ci%false = OpConstantFalse %bool
64cb93a386Sopenharmony_ci%float_0_75 = OpConstant %float 0.75
65cb93a386Sopenharmony_ci%int_3 = OpConstant %int 3
66cb93a386Sopenharmony_ci%_ptr_Function_bool = OpTypePointer Function %bool
67cb93a386Sopenharmony_ci%v2int = OpTypeVector %int 2
68cb93a386Sopenharmony_ci%_ptr_Function_v2int = OpTypePointer Function %v2int
69cb93a386Sopenharmony_ci%int_1 = OpConstant %int 1
70cb93a386Sopenharmony_ci%v3float = OpTypeVector %float 3
71cb93a386Sopenharmony_ci%v3int = OpTypeVector %int 3
72cb93a386Sopenharmony_ci%_ptr_Function_v3int = OpTypePointer Function %v3int
73cb93a386Sopenharmony_ci%int_2 = OpConstant %int 2
74cb93a386Sopenharmony_ci%_entrypoint_v = OpFunction %void None %15
75cb93a386Sopenharmony_ci%16 = OpLabel
76cb93a386Sopenharmony_ci%20 = OpVariable %_ptr_Function_v2float Function
77cb93a386Sopenharmony_ciOpStore %20 %19
78cb93a386Sopenharmony_ci%22 = OpFunctionCall %v4float %main %20
79cb93a386Sopenharmony_ciOpStore %sk_FragColor %22
80cb93a386Sopenharmony_ciOpReturn
81cb93a386Sopenharmony_ciOpFunctionEnd
82cb93a386Sopenharmony_ci%main = OpFunction %v4float None %23
83cb93a386Sopenharmony_ci%24 = OpFunctionParameter %_ptr_Function_v2float
84cb93a386Sopenharmony_ci%25 = OpLabel
85cb93a386Sopenharmony_ci%value = OpVariable %_ptr_Function_v4float Function
86cb93a386Sopenharmony_ci%exp = OpVariable %_ptr_Function_v4int Function
87cb93a386Sopenharmony_ci%result = OpVariable %_ptr_Function_v4float Function
88cb93a386Sopenharmony_ci%ok = OpVariable %_ptr_Function_v4bool Function
89cb93a386Sopenharmony_ci%48 = OpVariable %_ptr_Function_int Function
90cb93a386Sopenharmony_ci%69 = OpVariable %_ptr_Function_v2int Function
91cb93a386Sopenharmony_ci%92 = OpVariable %_ptr_Function_v3int Function
92cb93a386Sopenharmony_ci%125 = OpVariable %_ptr_Function_v4float Function
93cb93a386Sopenharmony_ci%28 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
94cb93a386Sopenharmony_ci%32 = OpLoad %v4float %28
95cb93a386Sopenharmony_ci%33 = OpVectorShuffle %v4float %32 %32 1 1 1 1
96cb93a386Sopenharmony_ci%35 = OpVectorTimesScalar %v4float %33 %float_6
97cb93a386Sopenharmony_ciOpStore %value %35
98cb93a386Sopenharmony_ci%44 = OpLoad %v4float %value
99cb93a386Sopenharmony_ci%45 = OpCompositeExtract %float %44 0
100cb93a386Sopenharmony_ci%46 = OpAccessChain %_ptr_Function_int %exp %int_0
101cb93a386Sopenharmony_ci%43 = OpExtInst %float %1 Frexp %45 %48
102cb93a386Sopenharmony_ci%49 = OpLoad %int %48
103cb93a386Sopenharmony_ciOpStore %46 %49
104cb93a386Sopenharmony_ci%50 = OpAccessChain %_ptr_Function_float %result %int_0
105cb93a386Sopenharmony_ciOpStore %50 %43
106cb93a386Sopenharmony_ci%53 = OpLoad %v4float %result
107cb93a386Sopenharmony_ci%54 = OpCompositeExtract %float %53 0
108cb93a386Sopenharmony_ci%56 = OpFOrdEqual %bool %54 %float_0_75
109cb93a386Sopenharmony_ciOpSelectionMerge %58 None
110cb93a386Sopenharmony_ciOpBranchConditional %56 %57 %58
111cb93a386Sopenharmony_ci%57 = OpLabel
112cb93a386Sopenharmony_ci%59 = OpLoad %v4int %exp
113cb93a386Sopenharmony_ci%60 = OpCompositeExtract %int %59 0
114cb93a386Sopenharmony_ci%62 = OpIEqual %bool %60 %int_3
115cb93a386Sopenharmony_ciOpBranch %58
116cb93a386Sopenharmony_ci%58 = OpLabel
117cb93a386Sopenharmony_ci%63 = OpPhi %bool %false %25 %62 %57
118cb93a386Sopenharmony_ci%64 = OpAccessChain %_ptr_Function_bool %ok %int_0
119cb93a386Sopenharmony_ciOpStore %64 %63
120cb93a386Sopenharmony_ci%67 = OpLoad %v4float %value
121cb93a386Sopenharmony_ci%68 = OpVectorShuffle %v2float %67 %67 0 1
122cb93a386Sopenharmony_ci%66 = OpExtInst %v2float %1 Frexp %68 %69
123cb93a386Sopenharmony_ci%72 = OpLoad %v2int %69
124cb93a386Sopenharmony_ci%73 = OpLoad %v4int %exp
125cb93a386Sopenharmony_ci%74 = OpVectorShuffle %v4int %73 %72 4 5 2 3
126cb93a386Sopenharmony_ciOpStore %exp %74
127cb93a386Sopenharmony_ci%75 = OpLoad %v4float %result
128cb93a386Sopenharmony_ci%76 = OpVectorShuffle %v4float %75 %66 4 5 2 3
129cb93a386Sopenharmony_ciOpStore %result %76
130cb93a386Sopenharmony_ci%77 = OpLoad %v4float %result
131cb93a386Sopenharmony_ci%78 = OpCompositeExtract %float %77 1
132cb93a386Sopenharmony_ci%79 = OpFOrdEqual %bool %78 %float_0_75
133cb93a386Sopenharmony_ciOpSelectionMerge %81 None
134cb93a386Sopenharmony_ciOpBranchConditional %79 %80 %81
135cb93a386Sopenharmony_ci%80 = OpLabel
136cb93a386Sopenharmony_ci%82 = OpLoad %v4int %exp
137cb93a386Sopenharmony_ci%83 = OpCompositeExtract %int %82 1
138cb93a386Sopenharmony_ci%84 = OpIEqual %bool %83 %int_3
139cb93a386Sopenharmony_ciOpBranch %81
140cb93a386Sopenharmony_ci%81 = OpLabel
141cb93a386Sopenharmony_ci%85 = OpPhi %bool %false %58 %84 %80
142cb93a386Sopenharmony_ci%86 = OpAccessChain %_ptr_Function_bool %ok %int_1
143cb93a386Sopenharmony_ciOpStore %86 %85
144cb93a386Sopenharmony_ci%89 = OpLoad %v4float %value
145cb93a386Sopenharmony_ci%90 = OpVectorShuffle %v3float %89 %89 0 1 2
146cb93a386Sopenharmony_ci%88 = OpExtInst %v3float %1 Frexp %90 %92
147cb93a386Sopenharmony_ci%95 = OpLoad %v3int %92
148cb93a386Sopenharmony_ci%96 = OpLoad %v4int %exp
149cb93a386Sopenharmony_ci%97 = OpVectorShuffle %v4int %96 %95 4 5 6 3
150cb93a386Sopenharmony_ciOpStore %exp %97
151cb93a386Sopenharmony_ci%98 = OpLoad %v4float %result
152cb93a386Sopenharmony_ci%99 = OpVectorShuffle %v4float %98 %88 4 5 6 3
153cb93a386Sopenharmony_ciOpStore %result %99
154cb93a386Sopenharmony_ci%100 = OpLoad %v4float %result
155cb93a386Sopenharmony_ci%101 = OpCompositeExtract %float %100 2
156cb93a386Sopenharmony_ci%102 = OpFOrdEqual %bool %101 %float_0_75
157cb93a386Sopenharmony_ciOpSelectionMerge %104 None
158cb93a386Sopenharmony_ciOpBranchConditional %102 %103 %104
159cb93a386Sopenharmony_ci%103 = OpLabel
160cb93a386Sopenharmony_ci%105 = OpLoad %v4int %exp
161cb93a386Sopenharmony_ci%106 = OpCompositeExtract %int %105 2
162cb93a386Sopenharmony_ci%107 = OpIEqual %bool %106 %int_3
163cb93a386Sopenharmony_ciOpBranch %104
164cb93a386Sopenharmony_ci%104 = OpLabel
165cb93a386Sopenharmony_ci%108 = OpPhi %bool %false %81 %107 %103
166cb93a386Sopenharmony_ci%109 = OpAccessChain %_ptr_Function_bool %ok %int_2
167cb93a386Sopenharmony_ciOpStore %109 %108
168cb93a386Sopenharmony_ci%112 = OpLoad %v4float %value
169cb93a386Sopenharmony_ci%111 = OpExtInst %v4float %1 Frexp %112 %exp
170cb93a386Sopenharmony_ciOpStore %result %111
171cb93a386Sopenharmony_ci%113 = OpLoad %v4float %result
172cb93a386Sopenharmony_ci%114 = OpCompositeExtract %float %113 3
173cb93a386Sopenharmony_ci%115 = OpFOrdEqual %bool %114 %float_0_75
174cb93a386Sopenharmony_ciOpSelectionMerge %117 None
175cb93a386Sopenharmony_ciOpBranchConditional %115 %116 %117
176cb93a386Sopenharmony_ci%116 = OpLabel
177cb93a386Sopenharmony_ci%118 = OpLoad %v4int %exp
178cb93a386Sopenharmony_ci%119 = OpCompositeExtract %int %118 3
179cb93a386Sopenharmony_ci%120 = OpIEqual %bool %119 %int_3
180cb93a386Sopenharmony_ciOpBranch %117
181cb93a386Sopenharmony_ci%117 = OpLabel
182cb93a386Sopenharmony_ci%121 = OpPhi %bool %false %104 %120 %116
183cb93a386Sopenharmony_ci%122 = OpAccessChain %_ptr_Function_bool %ok %int_3
184cb93a386Sopenharmony_ciOpStore %122 %121
185cb93a386Sopenharmony_ci%124 = OpLoad %v4bool %ok
186cb93a386Sopenharmony_ci%123 = OpAll %bool %124
187cb93a386Sopenharmony_ciOpSelectionMerge %128 None
188cb93a386Sopenharmony_ciOpBranchConditional %123 %126 %127
189cb93a386Sopenharmony_ci%126 = OpLabel
190cb93a386Sopenharmony_ci%129 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
191cb93a386Sopenharmony_ci%130 = OpLoad %v4float %129
192cb93a386Sopenharmony_ciOpStore %125 %130
193cb93a386Sopenharmony_ciOpBranch %128
194cb93a386Sopenharmony_ci%127 = OpLabel
195cb93a386Sopenharmony_ci%131 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
196cb93a386Sopenharmony_ci%132 = OpLoad %v4float %131
197cb93a386Sopenharmony_ciOpStore %125 %132
198cb93a386Sopenharmony_ciOpBranch %128
199cb93a386Sopenharmony_ci%128 = OpLabel
200cb93a386Sopenharmony_ci%133 = OpLoad %v4float %125
201cb93a386Sopenharmony_ciOpReturnValue %133
202cb93a386Sopenharmony_ciOpFunctionEnd
203