• 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"
11OpName %_entrypoint_v "_entrypoint_v"
12OpName %main "main"
13OpName %test1 "test1"
14OpName %test2 "test2"
15OpName %test3 "test3"
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 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%float = OpTypeFloat 32
34%v4float = OpTypeVector %float 4
35%_ptr_Output_v4float = OpTypePointer Output %v4float
36%sk_FragColor = OpVariable %_ptr_Output_v4float Output
37%bool = OpTypeBool
38%_ptr_Input_bool = OpTypePointer Input %bool
39%sk_Clockwise = OpVariable %_ptr_Input_bool Input
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%v2float = OpTypeVector %float 2
46%float_0 = OpConstant %float 0
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%int_3 = OpConstant %int 3
69%_ptr_Function_float = OpTypePointer Function %float
70%int_0 = OpConstant %int 0
71%_ptr_Function_v4float = OpTypePointer Function %v4float
72%float_24 = OpConstant %float 24
73%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
74%_entrypoint_v = OpFunction %void None %15
75%16 = OpLabel
76%20 = OpVariable %_ptr_Function_v2float Function
77OpStore %20 %19
78%22 = OpFunctionCall %v4float %main %20
79OpStore %sk_FragColor %22
80OpReturn
81OpFunctionEnd
82%main = OpFunction %v4float None %23
83%24 = OpFunctionParameter %_ptr_Function_v2float
84%25 = OpLabel
85%test1 = OpVariable %_ptr_Function__arr_float_int_4 Function
86%test2 = OpVariable %_ptr_Function__arr_v2float_int_2 Function
87%test3 = OpVariable %_ptr_Function__arr_mat4v4float_int_1 Function
88%71 = OpVariable %_ptr_Function_v4float Function
89%35 = OpCompositeConstruct %_arr_float_int_4 %float_1 %float_2 %float_3 %float_4
90OpStore %test1 %35
91%42 = OpCompositeConstruct %_arr_v2float_int_2 %40 %41
92OpStore %test2 %42
93%50 = OpCompositeConstruct %v4float %float_16 %float_0 %float_0 %float_0
94%51 = OpCompositeConstruct %v4float %float_0 %float_16 %float_0 %float_0
95%52 = OpCompositeConstruct %v4float %float_0 %float_0 %float_16 %float_0
96%53 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %float_16
97%49 = OpCompositeConstruct %mat4v4float %50 %51 %52 %53
98%54 = OpCompositeConstruct %_arr_mat4v4float_int_1 %49
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