7d55c44047da7c27336ae531a71969aa831082e1
[platform/upstream/glslang.git] / Test / baseResults / hlsl.typeGraphCopy.vert.out
1 hlsl.typeGraphCopy.vert
2 Shader version: 450
3 0:? Sequence
4 0:22  Function Definition: @main( ( temp float)
5 0:22    Function Parameters: 
6 0:?     Sequence
7 0:23      Branch: Return with expression
8 0:23        b: direct index for structure ( temp float)
9 0:23          s2: direct index for structure ( temp structure{ temp int a,  temp float b})
10 0:23            t3: direct index for structure ( temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2})
11 0:23              foo: direct index for structure ( uniform structure{ temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t1,  temp structure{ temp int a,  temp float b} t2,  temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t3})
12 0:23                'anon@0' (layout( row_major std140) uniform block{ uniform structure{ temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t1,  temp structure{ temp int a,  temp float b} t2,  temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t3} foo})
13 0:23                Constant:
14 0:23                  0 (const uint)
15 0:23              Constant:
16 0:23                2 (const int)
17 0:23            Constant:
18 0:23              1 (const int)
19 0:23          Constant:
20 0:23            1 (const int)
21 0:22  Function Definition: main( ( temp void)
22 0:22    Function Parameters: 
23 0:?     Sequence
24 0:22      move second child to first child ( temp float)
25 0:?         '@entryPointOutput' (layout( location=0) out float)
26 0:22        Function Call: @main( ( temp float)
27 0:?   Linker Objects
28 0:?     'anon@0' (layout( row_major std140) uniform block{ uniform structure{ temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t1,  temp structure{ temp int a,  temp float b} t2,  temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t3} foo})
29 0:?     '@entryPointOutput' (layout( location=0) out float)
30
31
32 Linked vertex stage:
33
34
35 Shader version: 450
36 0:? Sequence
37 0:22  Function Definition: @main( ( temp float)
38 0:22    Function Parameters: 
39 0:?     Sequence
40 0:23      Branch: Return with expression
41 0:23        b: direct index for structure ( temp float)
42 0:23          s2: direct index for structure ( temp structure{ temp int a,  temp float b})
43 0:23            t3: direct index for structure ( temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2})
44 0:23              foo: direct index for structure ( uniform structure{ temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t1,  temp structure{ temp int a,  temp float b} t2,  temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t3})
45 0:23                'anon@0' (layout( row_major std140) uniform block{ uniform structure{ temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t1,  temp structure{ temp int a,  temp float b} t2,  temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t3} foo})
46 0:23                Constant:
47 0:23                  0 (const uint)
48 0:23              Constant:
49 0:23                2 (const int)
50 0:23            Constant:
51 0:23              1 (const int)
52 0:23          Constant:
53 0:23            1 (const int)
54 0:22  Function Definition: main( ( temp void)
55 0:22    Function Parameters: 
56 0:?     Sequence
57 0:22      move second child to first child ( temp float)
58 0:?         '@entryPointOutput' (layout( location=0) out float)
59 0:22        Function Call: @main( ( temp float)
60 0:?   Linker Objects
61 0:?     'anon@0' (layout( row_major std140) uniform block{ uniform structure{ temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t1,  temp structure{ temp int a,  temp float b} t2,  temp structure{ temp structure{ temp int a,  temp float b} s1,  temp structure{ temp int a,  temp float b} s2} t3} foo})
62 0:?     '@entryPointOutput' (layout( location=0) out float)
63
64 // Module Version 10000
65 // Generated by (magic number): 80001
66 // Id's are bound by 28
67
68                               Capability Shader
69                1:             ExtInstImport  "GLSL.std.450"
70                               MemoryModel Logical GLSL450
71                               EntryPoint Vertex 4  "main" 26
72                               Name 4  "main"
73                               Name 8  "@main("
74                               Name 11  "N1"
75                               MemberName 11(N1) 0  "a"
76                               MemberName 11(N1) 1  "b"
77                               Name 12  "N2"
78                               MemberName 12(N2) 0  "s1"
79                               MemberName 12(N2) 1  "s2"
80                               Name 13  "N3"
81                               MemberName 13(N3) 0  "t1"
82                               MemberName 13(N3) 1  "t2"
83                               MemberName 13(N3) 2  "t3"
84                               Name 14  "$Global"
85                               MemberName 14($Global) 0  "foo"
86                               Name 16  ""
87                               Name 26  "@entryPointOutput"
88                               MemberDecorate 11(N1) 0 Offset 0
89                               MemberDecorate 11(N1) 1 Offset 4
90                               MemberDecorate 12(N2) 0 Offset 0
91                               MemberDecorate 12(N2) 1 Offset 16
92                               MemberDecorate 13(N3) 0 Offset 0
93                               MemberDecorate 13(N3) 1 Offset 32
94                               MemberDecorate 13(N3) 2 Offset 48
95                               MemberDecorate 14($Global) 0 Offset 0
96                               Decorate 14($Global) Block
97                               Decorate 16 DescriptorSet 0
98                               Decorate 26(@entryPointOutput) Location 0
99                2:             TypeVoid
100                3:             TypeFunction 2
101                6:             TypeFloat 32
102                7:             TypeFunction 6(float)
103               10:             TypeInt 32 1
104           11(N1):             TypeStruct 10(int) 6(float)
105           12(N2):             TypeStruct 11(N1) 11(N1)
106           13(N3):             TypeStruct 12(N2) 11(N1) 12(N2)
107      14($Global):             TypeStruct 13(N3)
108               15:             TypePointer Uniform 14($Global)
109               16:     15(ptr) Variable Uniform
110               17:     10(int) Constant 0
111               18:     10(int) Constant 2
112               19:     10(int) Constant 1
113               20:             TypePointer Uniform 6(float)
114               25:             TypePointer Output 6(float)
115 26(@entryPointOutput):     25(ptr) Variable Output
116          4(main):           2 Function None 3
117                5:             Label
118               27:    6(float) FunctionCall 8(@main()
119                               Store 26(@entryPointOutput) 27
120                               Return
121                               FunctionEnd
122        8(@main():    6(float) Function None 7
123                9:             Label
124               21:     20(ptr) AccessChain 16 17 18 19 19
125               22:    6(float) Load 21
126                               ReturnValue 22
127                               FunctionEnd