• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %_entrypoint_v "_entrypoint_v"
9OpName %main "main"
10OpDecorate %sk_FragColor RelaxedPrecision
11OpDecorate %sk_FragColor Location 0
12OpDecorate %sk_FragColor Index 0
13OpDecorate %sk_Clockwise BuiltIn FrontFacing
14OpDecorate %24 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%12 = OpTypeFunction %void
24%v2float = OpTypeVector %float 2
25%float_0 = OpConstant %float 0
26%16 = OpConstantComposite %v2float %float_0 %float_0
27%_ptr_Function_v2float = OpTypePointer Function %v2float
28%20 = OpTypeFunction %v4float %_ptr_Function_v2float
29%float_1 = OpConstant %float 1
30%24 = OpConstantComposite %v4float %float_0 %float_1 %float_0 %float_1
31%_entrypoint_v = OpFunction %void None %12
32%13 = OpLabel
33%17 = OpVariable %_ptr_Function_v2float Function
34OpStore %17 %16
35%19 = OpFunctionCall %v4float %main %17
36OpStore %sk_FragColor %19
37OpReturn
38OpFunctionEnd
39%main = OpFunction %v4float None %20
40%21 = OpFunctionParameter %_ptr_Function_v2float
41%22 = OpLabel
42OpReturnValue %24
43OpFunctionEnd
44