fd4a57471aec9eb42a23d860ba7768fb72f9e8a4
[platform/upstream/glslang.git] / Test / baseResults / hlsl.multiEntry.vert.out
1 hlsl.multiEntry.vert
2 Shader version: 450
3 0:? Sequence
4 0:4  Function Definition: FakeEntrypoint(u1; ( temp 4-component vector of float)
5 0:4    Function Parameters: 
6 0:4      'Index' ( in uint)
7 0:?     Sequence
8 0:5      Branch: Return with expression
9 0:5        textureFetch ( temp 4-component vector of float)
10 0:5          'Position' (layout( rgba32f) uniform textureBuffer)
11 0:5          Convert uint to int ( temp int)
12 0:5            'Index' ( in uint)
13 0:9  Function Definition: @RealEntrypoint(u1; ( temp 4-component vector of float)
14 0:9    Function Parameters: 
15 0:9      'Index' ( in uint)
16 0:?     Sequence
17 0:10      Branch: Return with expression
18 0:10        Function Call: FakeEntrypoint(u1; ( temp 4-component vector of float)
19 0:10          'Index' ( in uint)
20 0:9  Function Definition: RealEntrypoint( ( temp void)
21 0:9    Function Parameters: 
22 0:?     Sequence
23 0:9      move second child to first child ( temp uint)
24 0:?         'Index' ( temp uint)
25 0:?         'Index' ( in uint VertexIndex)
26 0:9      move second child to first child ( temp 4-component vector of float)
27 0:?         '@entryPointOutput' ( out 4-component vector of float Position)
28 0:9        Function Call: @RealEntrypoint(u1; ( temp 4-component vector of float)
29 0:?           'Index' ( temp uint)
30 0:?   Linker Objects
31 0:?     'Position' (layout( rgba32f) uniform textureBuffer)
32 0:?     '@entryPointOutput' ( out 4-component vector of float Position)
33 0:?     'Index' ( in uint VertexIndex)
34
35
36 Linked vertex stage:
37
38
39 Shader version: 450
40 0:? Sequence
41 0:4  Function Definition: FakeEntrypoint(u1; ( temp 4-component vector of float)
42 0:4    Function Parameters: 
43 0:4      'Index' ( in uint)
44 0:?     Sequence
45 0:5      Branch: Return with expression
46 0:5        textureFetch ( temp 4-component vector of float)
47 0:5          'Position' (layout( rgba32f) uniform textureBuffer)
48 0:5          Convert uint to int ( temp int)
49 0:5            'Index' ( in uint)
50 0:9  Function Definition: @RealEntrypoint(u1; ( temp 4-component vector of float)
51 0:9    Function Parameters: 
52 0:9      'Index' ( in uint)
53 0:?     Sequence
54 0:10      Branch: Return with expression
55 0:10        Function Call: FakeEntrypoint(u1; ( temp 4-component vector of float)
56 0:10          'Index' ( in uint)
57 0:9  Function Definition: RealEntrypoint( ( temp void)
58 0:9    Function Parameters: 
59 0:?     Sequence
60 0:9      move second child to first child ( temp uint)
61 0:?         'Index' ( temp uint)
62 0:?         'Index' ( in uint VertexIndex)
63 0:9      move second child to first child ( temp 4-component vector of float)
64 0:?         '@entryPointOutput' ( out 4-component vector of float Position)
65 0:9        Function Call: @RealEntrypoint(u1; ( temp 4-component vector of float)
66 0:?           'Index' ( temp uint)
67 0:?   Linker Objects
68 0:?     'Position' (layout( rgba32f) uniform textureBuffer)
69 0:?     '@entryPointOutput' ( out 4-component vector of float Position)
70 0:?     'Index' ( in uint VertexIndex)
71
72 // Module Version 10000
73 // Generated by (magic number): 80001
74 // Id's are bound by 41
75
76                               Capability Shader
77                               Capability SampledBuffer
78                1:             ExtInstImport  "GLSL.std.450"
79                               MemoryModel Logical GLSL450
80                               EntryPoint Vertex 4  "RealEntrypoint" 34 37
81                               Name 4  "RealEntrypoint"
82                               Name 12  "FakeEntrypoint(u1;"
83                               Name 11  "Index"
84                               Name 15  "@RealEntrypoint(u1;"
85                               Name 14  "Index"
86                               Name 19  "Position"
87                               Name 27  "param"
88                               Name 32  "Index"
89                               Name 34  "Index"
90                               Name 37  "@entryPointOutput"
91                               Name 38  "param"
92                               Decorate 19(Position) DescriptorSet 0
93                               Decorate 34(Index) BuiltIn VertexIndex
94                               Decorate 37(@entryPointOutput) BuiltIn Position
95                2:             TypeVoid
96                3:             TypeFunction 2
97                6:             TypeInt 32 0
98                7:             TypePointer Function 6(int)
99                8:             TypeFloat 32
100                9:             TypeVector 8(float) 4
101               10:             TypeFunction 9(fvec4) 7(ptr)
102               17:             TypeImage 8(float) Buffer sampled format:Rgba32f
103               18:             TypePointer UniformConstant 17
104     19(Position):     18(ptr) Variable UniformConstant
105               22:             TypeInt 32 1
106               33:             TypePointer Input 6(int)
107        34(Index):     33(ptr) Variable Input
108               36:             TypePointer Output 9(fvec4)
109 37(@entryPointOutput):     36(ptr) Variable Output
110 4(RealEntrypoint):           2 Function None 3
111                5:             Label
112        32(Index):      7(ptr) Variable Function
113        38(param):      7(ptr) Variable Function
114               35:      6(int) Load 34(Index)
115                               Store 32(Index) 35
116               39:      6(int) Load 32(Index)
117                               Store 38(param) 39
118               40:    9(fvec4) FunctionCall 15(@RealEntrypoint(u1;) 38(param)
119                               Store 37(@entryPointOutput) 40
120                               Return
121                               FunctionEnd
122 12(FakeEntrypoint(u1;):    9(fvec4) Function None 10
123        11(Index):      7(ptr) FunctionParameter
124               13:             Label
125               20:          17 Load 19(Position)
126               21:      6(int) Load 11(Index)
127               23:     22(int) Bitcast 21
128               24:    9(fvec4) ImageFetch 20 23
129                               ReturnValue 24
130                               FunctionEnd
131 15(@RealEntrypoint(u1;):    9(fvec4) Function None 10
132        14(Index):      7(ptr) FunctionParameter
133               16:             Label
134        27(param):      7(ptr) Variable Function
135               28:      6(int) Load 14(Index)
136                               Store 27(param) 28
137               29:    9(fvec4) FunctionCall 12(FakeEntrypoint(u1;) 27(param)
138                               ReturnValue 29
139                               FunctionEnd