• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "unknownInput"
10OpName %main "main"
11OpName %value "value"
12OpDecorate %sk_FragColor RelaxedPrecision
13OpDecorate %sk_FragColor Location 0
14OpDecorate %sk_FragColor Index 0
15OpDecorate %sk_Clockwise BuiltIn FrontFacing
16OpMemberDecorate %_UniformBuffer 0 Offset 0
17OpDecorate %_UniformBuffer Block
18OpDecorate %10 Binding 0
19OpDecorate %10 DescriptorSet 0
20OpDecorate %value RelaxedPrecision
21OpDecorate %31 RelaxedPrecision
22OpDecorate %32 RelaxedPrecision
23%float = OpTypeFloat 32
24%v4float = OpTypeVector %float 4
25%_ptr_Output_v4float = OpTypePointer Output %v4float
26%sk_FragColor = OpVariable %_ptr_Output_v4float Output
27%bool = OpTypeBool
28%_ptr_Input_bool = OpTypePointer Input %bool
29%sk_Clockwise = OpVariable %_ptr_Input_bool Input
30%_UniformBuffer = OpTypeStruct %float
31%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
32%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
33%void = OpTypeVoid
34%14 = OpTypeFunction %void
35%_ptr_Function_float = OpTypePointer Function %float
36%float_0 = OpConstant %float 0
37%int = OpTypeInt 32 1
38%int_0 = OpConstant %int 0
39%_ptr_Uniform_float = OpTypePointer Uniform %float
40%float_2 = OpConstant %float 2
41%float_1 = OpConstant %float 1
42%main = OpFunction %void None %14
43%15 = OpLabel
44%value = OpVariable %_ptr_Function_float Function
45OpStore %value %float_0
46OpSelectionMerge %21 None
47OpSwitch %int_0 %21 0 %22 1 %23
48%22 = OpLabel
49OpStore %value %float_0
50%24 = OpAccessChain %_ptr_Uniform_float %10 %int_0
51%26 = OpLoad %float %24
52%28 = OpFOrdEqual %bool %26 %float_2
53OpSelectionMerge %30 None
54OpBranchConditional %28 %29 %30
55%29 = OpLabel
56%31 = OpLoad %float %value
57%32 = OpCompositeConstruct %v4float %31 %31 %31 %31
58OpStore %sk_FragColor %32
59OpBranch %21
60%30 = OpLabel
61OpBranch %23
62%23 = OpLabel
63OpStore %value %float_1
64OpBranch %21
65%21 = OpLabel
66OpReturn
67OpFunctionEnd
68