Don't remove SPIR-V blocks before codegen.
[platform/upstream/glslang.git] / Test / baseResults / spv.simpleFunctionCall.frag.out
1 spv.simpleFunctionCall.frag
2 WARNING: 0:4: varying deprecated in version 130; may be removed in future release
3
4
5 Linked fragment stage:
6
7
8 // Module Version 10000
9 // Generated by (magic number): 80001
10 // Id's are bound by 23
11
12                               Capability Shader
13                1:             ExtInstImport  "GLSL.std.450"
14                               MemoryModel Logical GLSL450
15                               EntryPoint Fragment 4  "main" 12 17
16                               ExecutionMode 4 OriginLowerLeft
17                               Source GLSL 150
18                               Name 4  "main"
19                               Name 9  "foo("
20                               Name 12  "BaseColor"
21                               Name 17  "gl_FragColor"
22                               Name 20  "bigColor"
23                               Name 22  "d"
24                2:             TypeVoid
25                3:             TypeFunction 2
26                6:             TypeFloat 32
27                7:             TypeVector 6(float) 4
28                8:             TypeFunction 7(fvec4)
29               11:             TypePointer Input 7(fvec4)
30    12(BaseColor):     11(ptr) Variable Input
31               16:             TypePointer Output 7(fvec4)
32 17(gl_FragColor):     16(ptr) Variable Output
33               19:             TypePointer UniformConstant 7(fvec4)
34     20(bigColor):     19(ptr) Variable UniformConstant
35               21:             TypePointer UniformConstant 6(float)
36            22(d):     21(ptr) Variable UniformConstant
37          4(main):           2 Function None 3
38                5:             Label
39               18:    7(fvec4) FunctionCall 9(foo()
40                               Store 17(gl_FragColor) 18
41                               Return
42                               FunctionEnd
43          9(foo():    7(fvec4) Function None 8
44               10:             Label
45               13:    7(fvec4) Load 12(BaseColor)
46                               ReturnValue 13
47                               FunctionEnd