2faa744dbd3ec8f0e04043f7a9f9296d4e44f4be
[platform/upstream/glslang.git] / Test / baseResults / hlsl.getdimensions.dx10.vert.out
1 hlsl.getdimensions.dx10.vert
2 Shader version: 450
3 0:? Sequence
4 0:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float Pos})
5 0:11    Function Parameters: 
6 0:?     Sequence
7 0:21      Sequence
8 0:21        move second child to first child ( temp uint)
9 0:21          'sizeQueryTemp' ( temp uint)
10 0:21          textureSize ( temp uint)
11 0:21            'g_tTex1df4' (layout( binding=0) uniform texture1D)
12 0:21            Constant:
13 0:21              0 (const int)
14 0:21        move second child to first child ( temp uint)
15 0:21          'WidthU' ( temp uint)
16 0:21          'sizeQueryTemp' ( temp uint)
17 0:22      Sequence
18 0:22        move second child to first child ( temp uint)
19 0:22          'sizeQueryTemp' ( temp uint)
20 0:22          textureSize ( temp uint)
21 0:22            'g_tTex1df4' (layout( binding=0) uniform texture1D)
22 0:22            Constant:
23 0:22              6 (const uint)
24 0:22        move second child to first child ( temp uint)
25 0:22          'WidthU' ( temp uint)
26 0:22          'sizeQueryTemp' ( temp uint)
27 0:22        move second child to first child ( temp uint)
28 0:22          'NumberOfLevelsU' ( temp uint)
29 0:22          textureQueryLevels ( temp uint)
30 0:22            'g_tTex1df4' (layout( binding=0) uniform texture1D)
31 0:24      move second child to first child ( temp 4-component vector of float)
32 0:24        Pos: direct index for structure ( temp 4-component vector of float)
33 0:24          'vsout' ( temp structure{ temp 4-component vector of float Pos})
34 0:24          Constant:
35 0:24            0 (const int)
36 0:?         Constant:
37 0:?           0.000000
38 0:?           0.000000
39 0:?           0.000000
40 0:?           0.000000
41 0:26      Branch: Return with expression
42 0:26        'vsout' ( temp structure{ temp 4-component vector of float Pos})
43 0:11  Function Definition: main( ( temp void)
44 0:11    Function Parameters: 
45 0:?     Sequence
46 0:11      Sequence
47 0:11        move second child to first child ( temp 4-component vector of float)
48 0:?           '@entryPointOutput_Pos' ( out 4-component vector of float Position)
49 0:11          Pos: direct index for structure ( temp 4-component vector of float)
50 0:11            Function Call: @main( ( temp structure{ temp 4-component vector of float Pos})
51 0:11            Constant:
52 0:11              0 (const int)
53 0:?   Linker Objects
54 0:?     'g_sSamp' (layout( binding=0) uniform sampler)
55 0:?     'g_tTex1df4' (layout( binding=0) uniform texture1D)
56 0:?     '@entryPointOutput' (layout( location=0) out structure{})
57
58
59 Linked vertex stage:
60
61
62 Shader version: 450
63 0:? Sequence
64 0:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float Pos})
65 0:11    Function Parameters: 
66 0:?     Sequence
67 0:21      Sequence
68 0:21        move second child to first child ( temp uint)
69 0:21          'sizeQueryTemp' ( temp uint)
70 0:21          textureSize ( temp uint)
71 0:21            'g_tTex1df4' (layout( binding=0) uniform texture1D)
72 0:21            Constant:
73 0:21              0 (const int)
74 0:21        move second child to first child ( temp uint)
75 0:21          'WidthU' ( temp uint)
76 0:21          'sizeQueryTemp' ( temp uint)
77 0:22      Sequence
78 0:22        move second child to first child ( temp uint)
79 0:22          'sizeQueryTemp' ( temp uint)
80 0:22          textureSize ( temp uint)
81 0:22            'g_tTex1df4' (layout( binding=0) uniform texture1D)
82 0:22            Constant:
83 0:22              6 (const uint)
84 0:22        move second child to first child ( temp uint)
85 0:22          'WidthU' ( temp uint)
86 0:22          'sizeQueryTemp' ( temp uint)
87 0:22        move second child to first child ( temp uint)
88 0:22          'NumberOfLevelsU' ( temp uint)
89 0:22          textureQueryLevels ( temp uint)
90 0:22            'g_tTex1df4' (layout( binding=0) uniform texture1D)
91 0:24      move second child to first child ( temp 4-component vector of float)
92 0:24        Pos: direct index for structure ( temp 4-component vector of float)
93 0:24          'vsout' ( temp structure{ temp 4-component vector of float Pos})
94 0:24          Constant:
95 0:24            0 (const int)
96 0:?         Constant:
97 0:?           0.000000
98 0:?           0.000000
99 0:?           0.000000
100 0:?           0.000000
101 0:26      Branch: Return with expression
102 0:26        'vsout' ( temp structure{ temp 4-component vector of float Pos})
103 0:11  Function Definition: main( ( temp void)
104 0:11    Function Parameters: 
105 0:?     Sequence
106 0:11      Sequence
107 0:11        move second child to first child ( temp 4-component vector of float)
108 0:?           '@entryPointOutput_Pos' ( out 4-component vector of float Position)
109 0:11          Pos: direct index for structure ( temp 4-component vector of float)
110 0:11            Function Call: @main( ( temp structure{ temp 4-component vector of float Pos})
111 0:11            Constant:
112 0:11              0 (const int)
113 0:?   Linker Objects
114 0:?     'g_sSamp' (layout( binding=0) uniform sampler)
115 0:?     'g_tTex1df4' (layout( binding=0) uniform texture1D)
116 0:?     '@entryPointOutput' (layout( location=0) out structure{})
117
118 // Module Version 10000
119 // Generated by (magic number): 80001
120 // Id's are bound by 51
121
122                               Capability Shader
123                               Capability Sampled1D
124                               Capability ImageQuery
125                1:             ExtInstImport  "GLSL.std.450"
126                               MemoryModel Logical GLSL450
127                               EntryPoint Vertex 4  "main" 42 50
128                               Name 4  "main"
129                               Name 8  "VS_OUTPUT"
130                               MemberName 8(VS_OUTPUT) 0  "Pos"
131                               Name 10  "@main("
132                               Name 14  "sizeQueryTemp"
133                               Name 17  "g_tTex1df4"
134                               Name 22  "WidthU"
135                               Name 24  "sizeQueryTemp"
136                               Name 29  "NumberOfLevelsU"
137                               Name 33  "vsout"
138                               Name 42  "@entryPointOutput_Pos"
139                               Name 47  "g_sSamp"
140                               Name 48  "VS_OUTPUT"
141                               Name 50  "@entryPointOutput"
142                               Decorate 17(g_tTex1df4) DescriptorSet 0
143                               Decorate 17(g_tTex1df4) Binding 0
144                               Decorate 42(@entryPointOutput_Pos) BuiltIn Position
145                               Decorate 47(g_sSamp) DescriptorSet 0
146                               Decorate 47(g_sSamp) Binding 0
147                               Decorate 50(@entryPointOutput) Location 0
148                2:             TypeVoid
149                3:             TypeFunction 2
150                6:             TypeFloat 32
151                7:             TypeVector 6(float) 4
152     8(VS_OUTPUT):             TypeStruct 7(fvec4)
153                9:             TypeFunction 8(VS_OUTPUT)
154               12:             TypeInt 32 0
155               13:             TypePointer Function 12(int)
156               15:             TypeImage 6(float) 1D sampled format:Unknown
157               16:             TypePointer UniformConstant 15
158   17(g_tTex1df4):     16(ptr) Variable UniformConstant
159               19:             TypeInt 32 1
160               20:     19(int) Constant 0
161               26:     12(int) Constant 6
162               32:             TypePointer Function 8(VS_OUTPUT)
163               34:    6(float) Constant 0
164               35:    7(fvec4) ConstantComposite 34 34 34 34
165               36:             TypePointer Function 7(fvec4)
166               41:             TypePointer Output 7(fvec4)
167 42(@entryPointOutput_Pos):     41(ptr) Variable Output
168               45:             TypeSampler
169               46:             TypePointer UniformConstant 45
170      47(g_sSamp):     46(ptr) Variable UniformConstant
171    48(VS_OUTPUT):             TypeStruct
172               49:             TypePointer Output 48(VS_OUTPUT)
173 50(@entryPointOutput):     49(ptr) Variable Output
174          4(main):           2 Function None 3
175                5:             Label
176               43:8(VS_OUTPUT) FunctionCall 10(@main()
177               44:    7(fvec4) CompositeExtract 43 0
178                               Store 42(@entryPointOutput_Pos) 44
179                               Return
180                               FunctionEnd
181       10(@main():8(VS_OUTPUT) Function None 9
182               11:             Label
183 14(sizeQueryTemp):     13(ptr) Variable Function
184       22(WidthU):     13(ptr) Variable Function
185 24(sizeQueryTemp):     13(ptr) Variable Function
186 29(NumberOfLevelsU):     13(ptr) Variable Function
187        33(vsout):     32(ptr) Variable Function
188               18:          15 Load 17(g_tTex1df4)
189               21:     12(int) ImageQuerySizeLod 18 20
190                               Store 14(sizeQueryTemp) 21
191               23:     12(int) Load 14(sizeQueryTemp)
192                               Store 22(WidthU) 23
193               25:          15 Load 17(g_tTex1df4)
194               27:     12(int) ImageQuerySizeLod 25 26
195                               Store 24(sizeQueryTemp) 27
196               28:     12(int) Load 24(sizeQueryTemp)
197                               Store 22(WidthU) 28
198               30:          15 Load 17(g_tTex1df4)
199               31:     12(int) ImageQueryLevels 30
200                               Store 29(NumberOfLevelsU) 31
201               37:     36(ptr) AccessChain 33(vsout) 20
202                               Store 37 35
203               38:8(VS_OUTPUT) Load 33(vsout)
204                               ReturnValue 38
205                               FunctionEnd