• 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 %18 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%float_1 = OpConstant %float 1
27%main = OpFunction %void None %11
28%12 = OpLabel
29%x = OpVariable %_ptr_Function_float Function
30OpStore %x %float_0
31OpStore %x %float_0
32OpStore %x %float_1
33%17 = OpLoad %float %x
34%18 = OpCompositeConstruct %v4float %17 %17 %17 %17
35OpStore %sk_FragColor %18
36OpReturn
37OpFunctionEnd
38