• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_Clockwise %sk_FragColor
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_Clockwise "sk_Clockwise"
7OpName %sk_FragColor "sk_FragColor"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "colorGreen"
10OpMemberName %_UniformBuffer 1 "colorRed"
11OpName %_entrypoint_v "_entrypoint_v"
12OpName %main "main"
13OpName %test1 "test1"
14OpName %test2 "test2"
15OpName %test3 "test3"
16OpDecorate %sk_Clockwise BuiltIn FrontFacing
17OpDecorate %sk_FragColor RelaxedPrecision
18OpDecorate %sk_FragColor Location 0
19OpDecorate %sk_FragColor Index 0
20OpMemberDecorate %_UniformBuffer 0 Offset 0
21OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
22OpMemberDecorate %_UniformBuffer 1 Offset 16
23OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
24OpDecorate %_UniformBuffer Block
25OpDecorate %10 Binding 0
26OpDecorate %10 DescriptorSet 0
27OpDecorate %_arr_float_int_4 ArrayStride 16
28OpDecorate %_arr_v2float_int_2 ArrayStride 16
29OpDecorate %_arr_mat4v4float_int_1 ArrayStride 64
30OpDecorate %77 RelaxedPrecision
31OpDecorate %79 RelaxedPrecision
32OpDecorate %80 RelaxedPrecision
33%bool = OpTypeBool
34%_ptr_Input_bool = OpTypePointer Input %bool
35%sk_Clockwise = OpVariable %_ptr_Input_bool Input
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%_UniformBuffer = OpTypeStruct %v4float %v4float
41%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
42%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
43%void = OpTypeVoid
44%15 = OpTypeFunction %void
45%float_0 = OpConstant %float 0
46%v2float = OpTypeVector %float 2
47%19 = OpConstantComposite %v2float %float_0 %float_0
48%_ptr_Function_v2float = OpTypePointer Function %v2float
49%23 = OpTypeFunction %v4float %_ptr_Function_v2float
50%int = OpTypeInt 32 1
51%int_4 = OpConstant %int 4
52%_arr_float_int_4 = OpTypeArray %float %int_4
53%_ptr_Function__arr_float_int_4 = OpTypePointer Function %_arr_float_int_4
54%float_1 = OpConstant %float 1
55%float_2 = OpConstant %float 2
56%float_3 = OpConstant %float 3
57%float_4 = OpConstant %float 4
58%int_2 = OpConstant %int 2
59%_arr_v2float_int_2 = OpTypeArray %v2float %int_2
60%_ptr_Function__arr_v2float_int_2 = OpTypePointer Function %_arr_v2float_int_2
61%40 = OpConstantComposite %v2float %float_1 %float_2
62%41 = OpConstantComposite %v2float %float_3 %float_4
63%mat4v4float = OpTypeMatrix %v4float 4
64%int_1 = OpConstant %int 1
65%_arr_mat4v4float_int_1 = OpTypeArray %mat4v4float %int_1
66%_ptr_Function__arr_mat4v4float_int_1 = OpTypePointer Function %_arr_mat4v4float_int_1
67%float_16 = OpConstant %float 16
68%49 = OpConstantComposite %v4float %float_16 %float_0 %float_0 %float_0
69%50 = OpConstantComposite %v4float %float_0 %float_16 %float_0 %float_0
70%51 = OpConstantComposite %v4float %float_0 %float_0 %float_16 %float_0
71%52 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_16
72%53 = OpConstantComposite %mat4v4float %49 %50 %51 %52
73%int_3 = OpConstant %int 3
74%_ptr_Function_float = OpTypePointer Function %float
75%int_0 = OpConstant %int 0
76%_ptr_Function_v4float = OpTypePointer Function %v4float
77%float_24 = OpConstant %float 24
78%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
79%_entrypoint_v = OpFunction %void None %15
80%16 = OpLabel
81%20 = OpVariable %_ptr_Function_v2float Function
82OpStore %20 %19
83%22 = OpFunctionCall %v4float %main %20
84OpStore %sk_FragColor %22
85OpReturn
86OpFunctionEnd
87%main = OpFunction %v4float None %23
88%24 = OpFunctionParameter %_ptr_Function_v2float
89%25 = OpLabel
90%test1 = OpVariable %_ptr_Function__arr_float_int_4 Function
91%test2 = OpVariable %_ptr_Function__arr_v2float_int_2 Function
92%test3 = OpVariable %_ptr_Function__arr_mat4v4float_int_1 Function
93%71 = OpVariable %_ptr_Function_v4float Function
94%35 = OpCompositeConstruct %_arr_float_int_4 %float_1 %float_2 %float_3 %float_4
95OpStore %test1 %35
96%42 = OpCompositeConstruct %_arr_v2float_int_2 %40 %41
97OpStore %test2 %42
98%54 = OpCompositeConstruct %_arr_mat4v4float_int_1 %53
99OpStore %test3 %54
100%56 = OpAccessChain %_ptr_Function_float %test1 %int_3
101%58 = OpLoad %float %56
102%59 = OpAccessChain %_ptr_Function_v2float %test2 %int_1
103%60 = OpLoad %v2float %59
104%61 = OpCompositeExtract %float %60 1
105%62 = OpFAdd %float %58 %61
106%64 = OpAccessChain %_ptr_Function_v4float %test3 %int_0 %int_3
107%66 = OpLoad %v4float %64
108%67 = OpCompositeExtract %float %66 3
109%68 = OpFAdd %float %62 %67
110%70 = OpFOrdEqual %bool %68 %float_24
111OpSelectionMerge %74 None
112OpBranchConditional %70 %72 %73
113%72 = OpLabel
114%75 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
115%77 = OpLoad %v4float %75
116OpStore %71 %77
117OpBranch %74
118%73 = OpLabel
119%78 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
120%79 = OpLoad %v4float %78
121OpStore %71 %79
122OpBranch %74
123%74 = OpLabel
124%80 = OpLoad %v4float %71
125OpReturnValue %80
126OpFunctionEnd
127