• 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 "testInput"
10OpMemberName %_UniformBuffer 1 "testMatrix2x2"
11OpMemberName %_UniformBuffer 2 "colorGreen"
12OpMemberName %_UniformBuffer 3 "colorRed"
13OpName %_entrypoint_v "_entrypoint_v"
14OpName %main "main"
15OpName %inputVal "inputVal"
16OpName %expectedB "expectedB"
17OpDecorate %sk_FragColor RelaxedPrecision
18OpDecorate %sk_FragColor Location 0
19OpDecorate %sk_FragColor Index 0
20OpDecorate %sk_Clockwise BuiltIn FrontFacing
21OpMemberDecorate %_UniformBuffer 0 Offset 0
22OpMemberDecorate %_UniformBuffer 1 Offset 16
23OpMemberDecorate %_UniformBuffer 1 ColMajor
24OpMemberDecorate %_UniformBuffer 1 MatrixStride 16
25OpMemberDecorate %_UniformBuffer 2 Offset 48
26OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
27OpMemberDecorate %_UniformBuffer 3 Offset 64
28OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision
29OpDecorate %_UniformBuffer Block
30OpDecorate %10 Binding 0
31OpDecorate %10 DescriptorSet 0
32OpDecorate %96 RelaxedPrecision
33OpDecorate %99 RelaxedPrecision
34OpDecorate %100 RelaxedPrecision
35%float = OpTypeFloat 32
36%v4float = OpTypeVector %float 4
37%_ptr_Output_v4float = OpTypePointer Output %v4float
38%sk_FragColor = OpVariable %_ptr_Output_v4float Output
39%bool = OpTypeBool
40%_ptr_Input_bool = OpTypePointer Input %bool
41%sk_Clockwise = OpVariable %_ptr_Input_bool Input
42%v2float = OpTypeVector %float 2
43%mat2v2float = OpTypeMatrix %v2float 2
44%_UniformBuffer = OpTypeStruct %float %mat2v2float %v4float %v4float
45%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
46%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
47%void = OpTypeVoid
48%17 = OpTypeFunction %void
49%float_0 = OpConstant %float 0
50%20 = OpConstantComposite %v2float %float_0 %float_0
51%_ptr_Function_v2float = OpTypePointer Function %v2float
52%24 = OpTypeFunction %v4float %_ptr_Function_v2float
53%_ptr_Function_v4float = OpTypePointer Function %v4float
54%_ptr_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float
55%int = OpTypeInt 32 1
56%int_1 = OpConstant %int 1
57%float_1 = OpConstant %float 1
58%float_n1 = OpConstant %float -1
59%41 = OpConstantComposite %v4float %float_1 %float_1 %float_n1 %float_n1
60%uint = OpTypeInt 32 0
61%v4uint = OpTypeVector %uint 4
62%_ptr_Function_v4uint = OpTypePointer Function %v4uint
63%uint_1065353216 = OpConstant %uint 1065353216
64%uint_1073741824 = OpConstant %uint 1073741824
65%uint_3225419776 = OpConstant %uint 3225419776
66%uint_3229614080 = OpConstant %uint 3229614080
67%51 = OpConstantComposite %v4uint %uint_1065353216 %uint_1073741824 %uint_3225419776 %uint_3229614080
68%false = OpConstantFalse %bool
69%v2uint = OpTypeVector %uint 2
70%63 = OpConstantComposite %v2uint %uint_1065353216 %uint_1073741824
71%v2bool = OpTypeVector %bool 2
72%v3float = OpTypeVector %float 3
73%v3uint = OpTypeVector %uint 3
74%75 = OpConstantComposite %v3uint %uint_1065353216 %uint_1073741824 %uint_3225419776
75%v3bool = OpTypeVector %bool 3
76%v4bool = OpTypeVector %bool 4
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 %17
81%18 = OpLabel
82%21 = OpVariable %_ptr_Function_v2float Function
83OpStore %21 %20
84%23 = OpFunctionCall %v4float %main %21
85OpStore %sk_FragColor %23
86OpReturn
87OpFunctionEnd
88%main = OpFunction %v4float None %24
89%25 = OpFunctionParameter %_ptr_Function_v2float
90%26 = OpLabel
91%inputVal = OpVariable %_ptr_Function_v4float Function
92%expectedB = OpVariable %_ptr_Function_v4uint Function
93%89 = OpVariable %_ptr_Function_v4float Function
94%29 = OpAccessChain %_ptr_Uniform_mat2v2float %10 %int_1
95%33 = OpLoad %mat2v2float %29
96%34 = OpCompositeExtract %float %33 0 0
97%35 = OpCompositeExtract %float %33 0 1
98%36 = OpCompositeExtract %float %33 1 0
99%37 = OpCompositeExtract %float %33 1 1
100%38 = OpCompositeConstruct %v4float %34 %35 %36 %37
101%42 = OpFMul %v4float %38 %41
102OpStore %inputVal %42
103OpStore %expectedB %51
104%54 = OpLoad %v4float %inputVal
105%55 = OpCompositeExtract %float %54 0
106%53 = OpBitcast %uint %55
107%56 = OpIEqual %bool %53 %uint_1065353216
108OpSelectionMerge %58 None
109OpBranchConditional %56 %57 %58
110%57 = OpLabel
111%60 = OpLoad %v4float %inputVal
112%61 = OpVectorShuffle %v2float %60 %60 0 1
113%59 = OpBitcast %v2uint %61
114%64 = OpIEqual %v2bool %59 %63
115%66 = OpAll %bool %64
116OpBranch %58
117%58 = OpLabel
118%67 = OpPhi %bool %false %26 %66 %57
119OpSelectionMerge %69 None
120OpBranchConditional %67 %68 %69
121%68 = OpLabel
122%71 = OpLoad %v4float %inputVal
123%72 = OpVectorShuffle %v3float %71 %71 0 1 2
124%70 = OpBitcast %v3uint %72
125%76 = OpIEqual %v3bool %70 %75
126%78 = OpAll %bool %76
127OpBranch %69
128%69 = OpLabel
129%79 = OpPhi %bool %false %58 %78 %68
130OpSelectionMerge %81 None
131OpBranchConditional %79 %80 %81
132%80 = OpLabel
133%83 = OpLoad %v4float %inputVal
134%82 = OpBitcast %v4uint %83
135%84 = OpLoad %v4uint %expectedB
136%85 = OpIEqual %v4bool %82 %84
137%87 = OpAll %bool %85
138OpBranch %81
139%81 = OpLabel
140%88 = OpPhi %bool %false %69 %87 %80
141OpSelectionMerge %92 None
142OpBranchConditional %88 %90 %91
143%90 = OpLabel
144%93 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
145%96 = OpLoad %v4float %93
146OpStore %89 %96
147OpBranch %92
148%91 = OpLabel
149%97 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
150%99 = OpLoad %v4float %97
151OpStore %89 %99
152OpBranch %92
153%92 = OpLabel
154%100 = OpLoad %v4float %89
155OpReturnValue %100
156OpFunctionEnd
157