• 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"
9OpDecorate %sk_FragColor RelaxedPrecision
10OpDecorate %sk_FragColor Location 0
11OpDecorate %sk_FragColor Index 0
12OpDecorate %sk_Clockwise BuiltIn FrontFacing
13OpDecorate %15 RelaxedPrecision
14%float = OpTypeFloat 32
15%v4float = OpTypeVector %float 4
16%_ptr_Output_v4float = OpTypePointer Output %v4float
17%sk_FragColor = OpVariable %_ptr_Output_v4float Output
18%bool = OpTypeBool
19%_ptr_Input_bool = OpTypePointer Input %bool
20%sk_Clockwise = OpVariable %_ptr_Input_bool Input
21%void = OpTypeVoid
22%11 = OpTypeFunction %void
23%false = OpConstantFalse %bool
24%float_0 = OpConstant %float 0
25%15 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
26%main = OpFunction %void None %11
27%12 = OpLabel
28OpStore %sk_FragColor %15
29OpReturn
30OpFunctionEnd
31