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