• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %globalVar "globalVar"
9OpName %S "S"
10OpMemberName %S 0 "f"
11OpMemberName %S 1 "af"
12OpMemberName %S 2 "h4"
13OpMemberName %S 3 "ah4"
14OpName %globalStruct "globalStruct"
15OpName %_UniformBuffer "_UniformBuffer"
16OpMemberName %_UniformBuffer 0 "colorGreen"
17OpName %_entrypoint_v "_entrypoint_v"
18OpName %main "main"
19OpName %i "i"
20OpName %i4 "i4"
21OpName %f3x3 "f3x3"
22OpName %x "x"
23OpName %ai "ai"
24OpName %ai4 "ai4"
25OpName %ah2x4 "ah2x4"
26OpName %af4 "af4"
27OpName %s "s"
28OpName %l "l"
29OpDecorate %sk_FragColor RelaxedPrecision
30OpDecorate %sk_FragColor Location 0
31OpDecorate %sk_FragColor Index 0
32OpDecorate %sk_Clockwise BuiltIn FrontFacing
33OpDecorate %globalVar RelaxedPrecision
34OpDecorate %_arr_float_int_5 ArrayStride 16
35OpDecorate %_arr_v4float_int_5 ArrayStride 16
36OpMemberDecorate %S 0 Offset 0
37OpMemberDecorate %S 1 Offset 16
38OpMemberDecorate %S 2 Offset 96
39OpMemberDecorate %S 2 RelaxedPrecision
40OpMemberDecorate %S 3 Offset 112
41OpMemberDecorate %S 3 RelaxedPrecision
42OpMemberDecorate %_UniformBuffer 0 Offset 0
43OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
44OpDecorate %_UniformBuffer Block
45OpDecorate %19 Binding 0
46OpDecorate %19 DescriptorSet 0
47OpDecorate %x RelaxedPrecision
48OpDecorate %67 RelaxedPrecision
49OpDecorate %68 RelaxedPrecision
50OpDecorate %_arr_int_int_1 ArrayStride 16
51OpDecorate %_arr_v4int_int_1 ArrayStride 16
52OpDecorate %_arr_mat3v3float_int_1 ArrayStride 48
53OpDecorate %80 RelaxedPrecision
54OpDecorate %81 RelaxedPrecision
55OpDecorate %82 RelaxedPrecision
56OpDecorate %83 RelaxedPrecision
57OpDecorate %_arr_v4float_int_1 ArrayStride 16
58OpDecorate %98 RelaxedPrecision
59OpDecorate %100 RelaxedPrecision
60OpDecorate %101 RelaxedPrecision
61OpDecorate %102 RelaxedPrecision
62OpDecorate %104 RelaxedPrecision
63OpDecorate %105 RelaxedPrecision
64OpDecorate %106 RelaxedPrecision
65OpDecorate %l RelaxedPrecision
66OpDecorate %119 RelaxedPrecision
67OpDecorate %125 RelaxedPrecision
68OpDecorate %126 RelaxedPrecision
69OpDecorate %133 RelaxedPrecision
70OpDecorate %134 RelaxedPrecision
71OpDecorate %135 RelaxedPrecision
72OpDecorate %138 RelaxedPrecision
73OpDecorate %142 RelaxedPrecision
74%float = OpTypeFloat 32
75%v4float = OpTypeVector %float 4
76%_ptr_Output_v4float = OpTypePointer Output %v4float
77%sk_FragColor = OpVariable %_ptr_Output_v4float Output
78%bool = OpTypeBool
79%_ptr_Input_bool = OpTypePointer Input %bool
80%sk_Clockwise = OpVariable %_ptr_Input_bool Input
81%_ptr_Private_v4float = OpTypePointer Private %v4float
82%globalVar = OpVariable %_ptr_Private_v4float Private
83%int = OpTypeInt 32 1
84%int_5 = OpConstant %int 5
85%_arr_float_int_5 = OpTypeArray %float %int_5
86%_arr_v4float_int_5 = OpTypeArray %v4float %int_5
87%S = OpTypeStruct %float %_arr_float_int_5 %v4float %_arr_v4float_int_5
88%_ptr_Private_S = OpTypePointer Private %S
89%globalStruct = OpVariable %_ptr_Private_S Private
90%_UniformBuffer = OpTypeStruct %v4float
91%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
92%19 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
93%void = OpTypeVoid
94%24 = OpTypeFunction %void
95%v2float = OpTypeVector %float 2
96%float_0 = OpConstant %float 0
97%28 = OpConstantComposite %v2float %float_0 %float_0
98%_ptr_Function_v2float = OpTypePointer Function %v2float
99%32 = OpTypeFunction %v4float %_ptr_Function_v2float
100%_ptr_Function_int = OpTypePointer Function %int
101%int_0 = OpConstant %int 0
102%v4int = OpTypeVector %int 4
103%_ptr_Function_v4int = OpTypePointer Function %v4int
104%int_1 = OpConstant %int 1
105%int_2 = OpConstant %int 2
106%int_3 = OpConstant %int 3
107%int_4 = OpConstant %int 4
108%45 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
109%v3float = OpTypeVector %float 3
110%mat3v3float = OpTypeMatrix %v3float 3
111%_ptr_Function_mat3v3float = OpTypePointer Function %mat3v3float
112%float_1 = OpConstant %float 1
113%float_2 = OpConstant %float 2
114%float_3 = OpConstant %float 3
115%float_4 = OpConstant %float 4
116%float_5 = OpConstant %float 5
117%float_6 = OpConstant %float 6
118%float_7 = OpConstant %float 7
119%float_8 = OpConstant %float 8
120%float_9 = OpConstant %float 9
121%_ptr_Function_v4float = OpTypePointer Function %v4float
122%_ptr_Function_float = OpTypePointer Function %float
123%_arr_int_int_1 = OpTypeArray %int %int_1
124%_ptr_Function__arr_int_int_1 = OpTypePointer Function %_arr_int_int_1
125%_arr_v4int_int_1 = OpTypeArray %v4int %int_1
126%_ptr_Function__arr_v4int_int_1 = OpTypePointer Function %_arr_v4int_int_1
127%_arr_mat3v3float_int_1 = OpTypeArray %mat3v3float %int_1
128%_ptr_Function__arr_mat3v3float_int_1 = OpTypePointer Function %_arr_mat3v3float_int_1
129%_arr_v4float_int_1 = OpTypeArray %v4float %int_1
130%_ptr_Function__arr_v4float_int_1 = OpTypePointer Function %_arr_v4float_int_1
131%90 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
132%_ptr_Function_S = OpTypePointer Function %S
133%98 = OpConstantComposite %v3float %float_9 %float_9 %float_9
134%102 = OpConstantComposite %v2float %float_5 %float_5
135%106 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
136%_ptr_Private_float = OpTypePointer Private %float
137%119 = OpConstantComposite %v4float %float_2 %float_2 %float_2 %float_2
138%_ptr_Function_v3float = OpTypePointer Function %v3float
139%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
140%_entrypoint_v = OpFunction %void None %24
141%25 = OpLabel
142%29 = OpVariable %_ptr_Function_v2float Function
143OpStore %29 %28
144%31 = OpFunctionCall %v4float %main %29
145OpStore %sk_FragColor %31
146OpReturn
147OpFunctionEnd
148%main = OpFunction %v4float None %32
149%33 = OpFunctionParameter %_ptr_Function_v2float
150%34 = OpLabel
151%i = OpVariable %_ptr_Function_int Function
152%i4 = OpVariable %_ptr_Function_v4int Function
153%f3x3 = OpVariable %_ptr_Function_mat3v3float Function
154%x = OpVariable %_ptr_Function_v4float Function
155%ai = OpVariable %_ptr_Function__arr_int_int_1 Function
156%ai4 = OpVariable %_ptr_Function__arr_v4int_int_1 Function
157%ah2x4 = OpVariable %_ptr_Function__arr_mat3v3float_int_1 Function
158%af4 = OpVariable %_ptr_Function__arr_v4float_int_1 Function
159%s = OpVariable %_ptr_Function_S Function
160%l = OpVariable %_ptr_Function_float Function
161OpStore %i %int_0
162OpStore %i4 %45
163%60 = OpCompositeConstruct %v3float %float_1 %float_2 %float_3
164%61 = OpCompositeConstruct %v3float %float_4 %float_5 %float_6
165%62 = OpCompositeConstruct %v3float %float_7 %float_8 %float_9
166%59 = OpCompositeConstruct %mat3v3float %60 %61 %62
167OpStore %f3x3 %59
168%65 = OpAccessChain %_ptr_Function_float %x %int_3
169OpStore %65 %float_0
170%67 = OpLoad %v4float %x
171%68 = OpVectorShuffle %v4float %67 %28 5 4 2 3
172OpStore %x %68
173%72 = OpAccessChain %_ptr_Function_int %ai %int_0
174OpStore %72 %int_0
175%76 = OpAccessChain %_ptr_Function_v4int %ai4 %int_0
176OpStore %76 %45
177%81 = OpCompositeConstruct %v3float %float_1 %float_2 %float_3
178%82 = OpCompositeConstruct %v3float %float_4 %float_5 %float_6
179%83 = OpCompositeConstruct %v3float %float_7 %float_8 %float_9
180%80 = OpCompositeConstruct %mat3v3float %81 %82 %83
181%84 = OpAccessChain %_ptr_Function_mat3v3float %ah2x4 %int_0
182OpStore %84 %80
183%88 = OpAccessChain %_ptr_Function_v4float %af4 %int_0
184%89 = OpAccessChain %_ptr_Function_float %88 %int_0
185OpStore %89 %float_0
186%91 = OpAccessChain %_ptr_Function_v4float %af4 %int_0
187%92 = OpLoad %v4float %91
188%93 = OpVectorShuffle %v4float %92 %90 6 4 7 5
189OpStore %91 %93
190%96 = OpAccessChain %_ptr_Function_float %s %int_0
191OpStore %96 %float_0
192%97 = OpAccessChain %_ptr_Function_float %s %int_1 %int_1
193OpStore %97 %float_0
194%99 = OpAccessChain %_ptr_Function_v4float %s %int_2
195%100 = OpLoad %v4float %99
196%101 = OpVectorShuffle %v4float %100 %98 5 6 4 3
197OpStore %99 %101
198%103 = OpAccessChain %_ptr_Function_v4float %s %int_3 %int_2
199%104 = OpLoad %v4float %103
200%105 = OpVectorShuffle %v4float %104 %102 0 4 2 5
201OpStore %103 %105
202OpStore %globalVar %106
203%107 = OpAccessChain %_ptr_Private_float %globalStruct %int_0
204OpStore %107 %float_0
205OpStore %l %float_0
206%110 = OpAccessChain %_ptr_Function_int %ai %int_0
207%111 = OpLoad %int %110
208%112 = OpAccessChain %_ptr_Function_v4int %ai4 %int_0
209%113 = OpLoad %v4int %112
210%114 = OpCompositeExtract %int %113 0
211%115 = OpIAdd %int %111 %114
212OpStore %110 %115
213%116 = OpAccessChain %_ptr_Function_float %s %int_0
214OpStore %116 %float_1
215%117 = OpAccessChain %_ptr_Function_float %s %int_1 %int_0
216OpStore %117 %float_2
217%118 = OpAccessChain %_ptr_Function_v4float %s %int_2
218OpStore %118 %90
219%120 = OpAccessChain %_ptr_Function_v4float %s %int_3 %int_0
220OpStore %120 %119
221%121 = OpAccessChain %_ptr_Function_v4float %af4 %int_0
222%122 = OpLoad %v4float %121
223%123 = OpAccessChain %_ptr_Function_v3float %ah2x4 %int_0 %int_0
224%125 = OpLoad %v3float %123
225%126 = OpCompositeExtract %float %125 0
226%127 = OpVectorTimesScalar %v4float %122 %126
227OpStore %121 %127
228%128 = OpAccessChain %_ptr_Function_int %i4 %int_1
229%129 = OpLoad %int %128
230%130 = OpLoad %int %i
231%131 = OpIMul %int %129 %130
232OpStore %128 %131
233%132 = OpAccessChain %_ptr_Function_float %x %int_1
234%133 = OpLoad %float %132
235%134 = OpLoad %float %l
236%135 = OpFMul %float %133 %134
237OpStore %132 %135
238%136 = OpAccessChain %_ptr_Function_float %s %int_0
239%137 = OpLoad %float %136
240%138 = OpLoad %float %l
241%139 = OpFMul %float %137 %138
242OpStore %136 %139
243%140 = OpAccessChain %_ptr_Uniform_v4float %19 %int_0
244%142 = OpLoad %v4float %140
245OpReturnValue %142
246OpFunctionEnd
247