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