• 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 "unknownInput"
10OpName %_entrypoint_v "_entrypoint_v"
11OpName %main "main"
12OpName %color "color"
13OpDecorate %sk_FragColor RelaxedPrecision
14OpDecorate %sk_FragColor Location 0
15OpDecorate %sk_FragColor Index 0
16OpDecorate %sk_Clockwise BuiltIn FrontFacing
17OpMemberDecorate %_UniformBuffer 0 Offset 0
18OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
19OpDecorate %_UniformBuffer Block
20OpDecorate %10 Binding 0
21OpDecorate %10 DescriptorSet 0
22OpDecorate %color RelaxedPrecision
23OpDecorate %28 RelaxedPrecision
24OpDecorate %33 RelaxedPrecision
25OpDecorate %42 RelaxedPrecision
26OpDecorate %50 RelaxedPrecision
27%float = OpTypeFloat 32
28%v4float = OpTypeVector %float 4
29%_ptr_Output_v4float = OpTypePointer Output %v4float
30%sk_FragColor = OpVariable %_ptr_Output_v4float Output
31%bool = OpTypeBool
32%_ptr_Input_bool = OpTypePointer Input %bool
33%sk_Clockwise = OpVariable %_ptr_Input_bool Input
34%_UniformBuffer = OpTypeStruct %float
35%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
36%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
37%void = OpTypeVoid
38%15 = OpTypeFunction %void
39%v2float = OpTypeVector %float 2
40%float_0 = OpConstant %float 0
41%19 = OpConstantComposite %v2float %float_0 %float_0
42%_ptr_Function_v2float = OpTypePointer Function %v2float
43%23 = OpTypeFunction %v4float %_ptr_Function_v2float
44%_ptr_Function_v4float = OpTypePointer Function %v4float
45%28 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
46%_ptr_Uniform_float = OpTypePointer Uniform %float
47%int = OpTypeInt 32 1
48%int_0 = OpConstant %int 0
49%float_1 = OpConstant %float 1
50%_ptr_Function_float = OpTypePointer Function %float
51%int_1 = OpConstant %int 1
52%float_2 = OpConstant %float 2
53%int_3 = OpConstant %int 3
54%_entrypoint_v = OpFunction %void None %15
55%16 = OpLabel
56%20 = OpVariable %_ptr_Function_v2float Function
57OpStore %20 %19
58%22 = OpFunctionCall %v4float %main %20
59OpStore %sk_FragColor %22
60OpReturn
61OpFunctionEnd
62%main = OpFunction %v4float None %23
63%24 = OpFunctionParameter %_ptr_Function_v2float
64%25 = OpLabel
65%color = OpVariable %_ptr_Function_v4float Function
66OpStore %color %28
67%29 = OpAccessChain %_ptr_Uniform_float %10 %int_0
68%33 = OpLoad %float %29
69%35 = OpFOrdEqual %bool %33 %float_1
70OpSelectionMerge %37 None
71OpBranchConditional %35 %36 %37
72%36 = OpLabel
73%38 = OpAccessChain %_ptr_Function_float %color %int_1
74OpStore %38 %float_1
75OpBranch %37
76%37 = OpLabel
77%41 = OpAccessChain %_ptr_Uniform_float %10 %int_0
78%42 = OpLoad %float %41
79%44 = OpFOrdEqual %bool %42 %float_2
80OpSelectionMerge %47 None
81OpBranchConditional %44 %45 %46
82%45 = OpLabel
83OpBranch %47
84%46 = OpLabel
85%48 = OpAccessChain %_ptr_Function_float %color %int_3
86OpStore %48 %float_1
87OpBranch %47
88%47 = OpLabel
89%50 = OpLoad %v4float %color
90OpReturnValue %50
91OpFunctionEnd
92