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