• 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 "testMatrix2x2"
10OpMemberName %_UniformBuffer 1 "testMatrix3x3"
11OpMemberName %_UniformBuffer 2 "colorGreen"
12OpMemberName %_UniformBuffer 3 "colorRed"
13OpName %_entrypoint_v "_entrypoint_v"
14OpName %main "main"
15OpName %testMatrix2x3 "testMatrix2x3"
16OpDecorate %sk_FragColor RelaxedPrecision
17OpDecorate %sk_FragColor Location 0
18OpDecorate %sk_FragColor Index 0
19OpDecorate %sk_Clockwise BuiltIn FrontFacing
20OpMemberDecorate %_UniformBuffer 0 Offset 0
21OpMemberDecorate %_UniformBuffer 0 ColMajor
22OpMemberDecorate %_UniformBuffer 0 MatrixStride 16
23OpMemberDecorate %_UniformBuffer 1 Offset 32
24OpMemberDecorate %_UniformBuffer 1 ColMajor
25OpMemberDecorate %_UniformBuffer 1 MatrixStride 16
26OpMemberDecorate %_UniformBuffer 2 Offset 80
27OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
28OpMemberDecorate %_UniformBuffer 3 Offset 96
29OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision
30OpDecorate %_UniformBuffer Block
31OpDecorate %10 Binding 0
32OpDecorate %10 DescriptorSet 0
33OpDecorate %123 RelaxedPrecision
34OpDecorate %126 RelaxedPrecision
35OpDecorate %127 RelaxedPrecision
36%float = OpTypeFloat 32
37%v4float = OpTypeVector %float 4
38%_ptr_Output_v4float = OpTypePointer Output %v4float
39%sk_FragColor = OpVariable %_ptr_Output_v4float Output
40%bool = OpTypeBool
41%_ptr_Input_bool = OpTypePointer Input %bool
42%sk_Clockwise = OpVariable %_ptr_Input_bool Input
43%v2float = OpTypeVector %float 2
44%mat2v2float = OpTypeMatrix %v2float 2
45%v3float = OpTypeVector %float 3
46%mat3v3float = OpTypeMatrix %v3float 3
47%_UniformBuffer = OpTypeStruct %mat2v2float %mat3v3float %v4float %v4float
48%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
49%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
50%void = OpTypeVoid
51%19 = OpTypeFunction %void
52%float_0 = OpConstant %float 0
53%22 = OpConstantComposite %v2float %float_0 %float_0
54%_ptr_Function_v2float = OpTypePointer Function %v2float
55%26 = OpTypeFunction %v4float %_ptr_Function_v2float
56%mat2v3float = OpTypeMatrix %v3float 2
57%_ptr_Function_mat2v3float = OpTypePointer Function %mat2v3float
58%float_1 = OpConstant %float 1
59%float_2 = OpConstant %float 2
60%float_3 = OpConstant %float 3
61%float_4 = OpConstant %float 4
62%float_5 = OpConstant %float 5
63%float_6 = OpConstant %float 6
64%false = OpConstantFalse %bool
65%_ptr_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float
66%int = OpTypeInt 32 1
67%int_0 = OpConstant %int 0
68%v2bool = OpTypeVector %bool 2
69%mat3v2float = OpTypeMatrix %v2float 3
70%_ptr_Uniform_mat3v3float = OpTypePointer Uniform %mat3v3float
71%int_1 = OpConstant %int 1
72%float_7 = OpConstant %float 7
73%float_8 = OpConstant %float 8
74%float_9 = OpConstant %float 9
75%v3bool = OpTypeVector %bool 3
76%_ptr_Function_v4float = OpTypePointer Function %v4float
77%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
78%int_2 = OpConstant %int 2
79%int_3 = OpConstant %int 3
80%_entrypoint_v = OpFunction %void None %19
81%20 = OpLabel
82%23 = OpVariable %_ptr_Function_v2float Function
83OpStore %23 %22
84%25 = OpFunctionCall %v4float %main %23
85OpStore %sk_FragColor %25
86OpReturn
87OpFunctionEnd
88%main = OpFunction %v4float None %26
89%27 = OpFunctionParameter %_ptr_Function_v2float
90%28 = OpLabel
91%testMatrix2x3 = OpVariable %_ptr_Function_mat2v3float Function
92%115 = OpVariable %_ptr_Function_v4float Function
93%38 = OpCompositeConstruct %v3float %float_1 %float_2 %float_3
94%39 = OpCompositeConstruct %v3float %float_4 %float_5 %float_6
95%40 = OpCompositeConstruct %mat2v3float %38 %39
96OpStore %testMatrix2x3 %40
97%43 = OpAccessChain %_ptr_Uniform_mat2v2float %10 %int_0
98%47 = OpLoad %mat2v2float %43
99%42 = OpTranspose %mat2v2float %47
100%48 = OpCompositeConstruct %v2float %float_1 %float_3
101%49 = OpCompositeConstruct %v2float %float_2 %float_4
102%50 = OpCompositeConstruct %mat2v2float %48 %49
103%52 = OpCompositeExtract %v2float %42 0
104%53 = OpCompositeExtract %v2float %50 0
105%54 = OpFOrdEqual %v2bool %52 %53
106%55 = OpAll %bool %54
107%56 = OpCompositeExtract %v2float %42 1
108%57 = OpCompositeExtract %v2float %50 1
109%58 = OpFOrdEqual %v2bool %56 %57
110%59 = OpAll %bool %58
111%60 = OpLogicalAnd %bool %55 %59
112OpSelectionMerge %62 None
113OpBranchConditional %60 %61 %62
114%61 = OpLabel
115%64 = OpLoad %mat2v3float %testMatrix2x3
116%63 = OpTranspose %mat3v2float %64
117%66 = OpCompositeConstruct %v2float %float_1 %float_4
118%67 = OpCompositeConstruct %v2float %float_2 %float_5
119%68 = OpCompositeConstruct %v2float %float_3 %float_6
120%69 = OpCompositeConstruct %mat3v2float %66 %67 %68
121%70 = OpCompositeExtract %v2float %63 0
122%71 = OpCompositeExtract %v2float %69 0
123%72 = OpFOrdEqual %v2bool %70 %71
124%73 = OpAll %bool %72
125%74 = OpCompositeExtract %v2float %63 1
126%75 = OpCompositeExtract %v2float %69 1
127%76 = OpFOrdEqual %v2bool %74 %75
128%77 = OpAll %bool %76
129%78 = OpLogicalAnd %bool %73 %77
130%79 = OpCompositeExtract %v2float %63 2
131%80 = OpCompositeExtract %v2float %69 2
132%81 = OpFOrdEqual %v2bool %79 %80
133%82 = OpAll %bool %81
134%83 = OpLogicalAnd %bool %78 %82
135OpBranch %62
136%62 = OpLabel
137%84 = OpPhi %bool %false %28 %83 %61
138OpSelectionMerge %86 None
139OpBranchConditional %84 %85 %86
140%85 = OpLabel
141%88 = OpAccessChain %_ptr_Uniform_mat3v3float %10 %int_1
142%91 = OpLoad %mat3v3float %88
143%87 = OpTranspose %mat3v3float %91
144%95 = OpCompositeConstruct %v3float %float_1 %float_4 %float_7
145%96 = OpCompositeConstruct %v3float %float_2 %float_5 %float_8
146%97 = OpCompositeConstruct %v3float %float_3 %float_6 %float_9
147%98 = OpCompositeConstruct %mat3v3float %95 %96 %97
148%100 = OpCompositeExtract %v3float %87 0
149%101 = OpCompositeExtract %v3float %98 0
150%102 = OpFOrdEqual %v3bool %100 %101
151%103 = OpAll %bool %102
152%104 = OpCompositeExtract %v3float %87 1
153%105 = OpCompositeExtract %v3float %98 1
154%106 = OpFOrdEqual %v3bool %104 %105
155%107 = OpAll %bool %106
156%108 = OpLogicalAnd %bool %103 %107
157%109 = OpCompositeExtract %v3float %87 2
158%110 = OpCompositeExtract %v3float %98 2
159%111 = OpFOrdEqual %v3bool %109 %110
160%112 = OpAll %bool %111
161%113 = OpLogicalAnd %bool %108 %112
162OpBranch %86
163%86 = OpLabel
164%114 = OpPhi %bool %false %62 %113 %85
165OpSelectionMerge %119 None
166OpBranchConditional %114 %117 %118
167%117 = OpLabel
168%120 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
169%123 = OpLoad %v4float %120
170OpStore %115 %123
171OpBranch %119
172%118 = OpLabel
173%124 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
174%126 = OpLoad %v4float %124
175OpStore %115 %126
176OpBranch %119
177%119 = OpLabel
178%127 = OpLoad %v4float %115
179OpReturnValue %127
180OpFunctionEnd
181