• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_Clockwise
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_Clockwise "sk_Clockwise"
7OpName %main "main"
8OpName %x "x"
9OpDecorate %sk_Clockwise BuiltIn FrontFacing
10%bool = OpTypeBool
11%_ptr_Input_bool = OpTypePointer Input %bool
12%sk_Clockwise = OpVariable %_ptr_Input_bool Input
13%void = OpTypeVoid
14%7 = OpTypeFunction %void
15%uint = OpTypeInt 32 0
16%_ptr_Function_uint = OpTypePointer Function %uint
17%uint_1 = OpConstant %uint 1
18%main = OpFunction %void None %7
19%8 = OpLabel
20%x = OpVariable %_ptr_Function_uint Function
21%14 = OpLoad %uint %x
22%15 = OpIAdd %uint %14 %uint_1
23OpStore %x %15
24%12 = OpSNegate %uint %15
25OpReturn
26OpFunctionEnd
27