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