• 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 %main "main"
9OpName %x "x"
10OpDecorate %sk_FragColor RelaxedPrecision
11OpDecorate %sk_FragColor Location 0
12OpDecorate %sk_FragColor Index 0
13OpDecorate %sk_Clockwise BuiltIn FrontFacing
14OpDecorate %27 RelaxedPrecision
15%float = OpTypeFloat 32
16%v4float = OpTypeVector %float 4
17%_ptr_Output_v4float = OpTypePointer Output %v4float
18%sk_FragColor = OpVariable %_ptr_Output_v4float Output
19%bool = OpTypeBool
20%_ptr_Input_bool = OpTypePointer Input %bool
21%sk_Clockwise = OpVariable %_ptr_Input_bool Input
22%void = OpTypeVoid
23%11 = OpTypeFunction %void
24%_ptr_Function_float = OpTypePointer Function %float
25%float_0 = OpConstant %float 0
26%int = OpTypeInt 32 1
27%int_0 = OpConstant %int 0
28%float_1 = OpConstant %float 1
29%main = OpFunction %void None %11
30%12 = OpLabel
31%x = OpVariable %_ptr_Function_float Function
32OpStore %x %float_0
33OpSelectionMerge %18 None
34OpSwitch %int_0 %18 0 %19 1 %20
35%19 = OpLabel
36OpStore %x %float_0
37%21 = OpLoad %float %x
38%23 = OpFOrdLessThan %bool %21 %float_1
39OpSelectionMerge %25 None
40OpBranchConditional %23 %24 %25
41%24 = OpLabel
42%26 = OpLoad %float %x
43%27 = OpCompositeConstruct %v4float %26 %26 %26 %26
44OpStore %sk_FragColor %27
45OpBranch %18
46%25 = OpLabel
47OpBranch %20
48%20 = OpLabel
49OpStore %x %float_1
50OpBranch %18
51%18 = OpLabel
52OpReturn
53OpFunctionEnd
54