31e7927b5d14aac7c2e2342eb483e3336a5aaf21
[platform/upstream/glslang.git] / Test / baseResults / hlsl.load.buffer.float.dx10.frag.out
1 hlsl.load.buffer.float.dx10.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:24  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
6 0:24    Function Parameters: 
7 0:?     Sequence
8 0:28      Sequence
9 0:28        move second child to first child ( temp float)
10 0:28          'r00' ( temp float)
11 0:28          Construct float ( temp float)
12 0:?             textureFetch ( temp 4-component vector of float)
13 0:28              'g_tTexbfs' (layout( r32f) uniform textureBuffer)
14 0:28              c1: direct index for structure ( uniform int)
15 0:28                'anon@0' (layout( row_major std140) uniform block{ uniform int c1,  uniform 2-component vector of int c2,  uniform 3-component vector of int c3,  uniform 4-component vector of int c4,  uniform int o1,  uniform 2-component vector of int o2,  uniform 3-component vector of int o3,  uniform 4-component vector of int o4})
16 0:28                Constant:
17 0:28                  0 (const uint)
18 0:29      Sequence
19 0:29        move second child to first child ( temp int)
20 0:29          'r01' ( temp int)
21 0:29          Construct int ( temp int)
22 0:?             textureFetch ( temp 4-component vector of int)
23 0:29              'g_tTexbis' (layout( r32i) uniform itextureBuffer)
24 0:29              c1: direct index for structure ( uniform int)
25 0:29                'anon@0' (layout( row_major std140) uniform block{ uniform int c1,  uniform 2-component vector of int c2,  uniform 3-component vector of int c3,  uniform 4-component vector of int c4,  uniform int o1,  uniform 2-component vector of int o2,  uniform 3-component vector of int o3,  uniform 4-component vector of int o4})
26 0:29                Constant:
27 0:29                  0 (const uint)
28 0:30      Sequence
29 0:30        move second child to first child ( temp uint)
30 0:30          'r02' ( temp uint)
31 0:30          Construct uint ( temp uint)
32 0:?             textureFetch ( temp 4-component vector of uint)
33 0:30              'g_tTexbus' (layout( r32ui) uniform utextureBuffer)
34 0:30              c1: direct index for structure ( uniform int)
35 0:30                'anon@0' (layout( row_major std140) uniform block{ uniform int c1,  uniform 2-component vector of int c2,  uniform 3-component vector of int c3,  uniform 4-component vector of int c4,  uniform int o1,  uniform 2-component vector of int o2,  uniform 3-component vector of int o3,  uniform 4-component vector of int o4})
36 0:30                Constant:
37 0:30                  0 (const uint)
38 0:34      move second child to first child ( temp 4-component vector of float)
39 0:34        Color: direct index for structure ( temp 4-component vector of float)
40 0:34          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
41 0:34          Constant:
42 0:34            0 (const int)
43 0:34        Constant:
44 0:34          1.000000
45 0:34          1.000000
46 0:34          1.000000
47 0:34          1.000000
48 0:35      move second child to first child ( temp float)
49 0:35        Depth: direct index for structure ( temp float)
50 0:35          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
51 0:35          Constant:
52 0:35            1 (const int)
53 0:35        Constant:
54 0:35          1.000000
55 0:37      Branch: Return with expression
56 0:37        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
57 0:24  Function Definition: main( ( temp void)
58 0:24    Function Parameters: 
59 0:?     Sequence
60 0:24      Sequence
61 0:24        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
62 0:24          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
63 0:24          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
64 0:24        move second child to first child ( temp 4-component vector of float)
65 0:?           'Color' (layout( location=0) out 4-component vector of float)
66 0:24          Color: direct index for structure ( temp 4-component vector of float)
67 0:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
68 0:24            Constant:
69 0:24              0 (const int)
70 0:24        move second child to first child ( temp float)
71 0:?           'Depth' ( out float FragDepth)
72 0:24          Depth: direct index for structure ( temp float)
73 0:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
74 0:24            Constant:
75 0:24              1 (const int)
76 0:?   Linker Objects
77 0:?     'g_tTexbfs_test' (layout( binding=0 r32f) uniform textureBuffer)
78 0:?     'g_tTexbfs' (layout( r32f) uniform textureBuffer)
79 0:?     'g_tTexbis' (layout( r32i) uniform itextureBuffer)
80 0:?     'g_tTexbus' (layout( r32ui) uniform utextureBuffer)
81 0:?     'anon@0' (layout( row_major std140) uniform block{ uniform int c1,  uniform 2-component vector of int c2,  uniform 3-component vector of int c3,  uniform 4-component vector of int c4,  uniform int o1,  uniform 2-component vector of int o2,  uniform 3-component vector of int o3,  uniform 4-component vector of int o4})
82 0:?     'Color' (layout( location=0) out 4-component vector of float)
83 0:?     'Depth' ( out float FragDepth)
84
85
86 Linked fragment stage:
87
88
89 Shader version: 450
90 gl_FragCoord origin is upper left
91 0:? Sequence
92 0:24  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
93 0:24    Function Parameters: 
94 0:?     Sequence
95 0:28      Sequence
96 0:28        move second child to first child ( temp float)
97 0:28          'r00' ( temp float)
98 0:28          Construct float ( temp float)
99 0:?             textureFetch ( temp 4-component vector of float)
100 0:28              'g_tTexbfs' (layout( r32f) uniform textureBuffer)
101 0:28              c1: direct index for structure ( uniform int)
102 0:28                'anon@0' (layout( row_major std140) uniform block{ uniform int c1,  uniform 2-component vector of int c2,  uniform 3-component vector of int c3,  uniform 4-component vector of int c4,  uniform int o1,  uniform 2-component vector of int o2,  uniform 3-component vector of int o3,  uniform 4-component vector of int o4})
103 0:28                Constant:
104 0:28                  0 (const uint)
105 0:29      Sequence
106 0:29        move second child to first child ( temp int)
107 0:29          'r01' ( temp int)
108 0:29          Construct int ( temp int)
109 0:?             textureFetch ( temp 4-component vector of int)
110 0:29              'g_tTexbis' (layout( r32i) uniform itextureBuffer)
111 0:29              c1: direct index for structure ( uniform int)
112 0:29                'anon@0' (layout( row_major std140) uniform block{ uniform int c1,  uniform 2-component vector of int c2,  uniform 3-component vector of int c3,  uniform 4-component vector of int c4,  uniform int o1,  uniform 2-component vector of int o2,  uniform 3-component vector of int o3,  uniform 4-component vector of int o4})
113 0:29                Constant:
114 0:29                  0 (const uint)
115 0:30      Sequence
116 0:30        move second child to first child ( temp uint)
117 0:30          'r02' ( temp uint)
118 0:30          Construct uint ( temp uint)
119 0:?             textureFetch ( temp 4-component vector of uint)
120 0:30              'g_tTexbus' (layout( r32ui) uniform utextureBuffer)
121 0:30              c1: direct index for structure ( uniform int)
122 0:30                'anon@0' (layout( row_major std140) uniform block{ uniform int c1,  uniform 2-component vector of int c2,  uniform 3-component vector of int c3,  uniform 4-component vector of int c4,  uniform int o1,  uniform 2-component vector of int o2,  uniform 3-component vector of int o3,  uniform 4-component vector of int o4})
123 0:30                Constant:
124 0:30                  0 (const uint)
125 0:34      move second child to first child ( temp 4-component vector of float)
126 0:34        Color: direct index for structure ( temp 4-component vector of float)
127 0:34          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
128 0:34          Constant:
129 0:34            0 (const int)
130 0:34        Constant:
131 0:34          1.000000
132 0:34          1.000000
133 0:34          1.000000
134 0:34          1.000000
135 0:35      move second child to first child ( temp float)
136 0:35        Depth: direct index for structure ( temp float)
137 0:35          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
138 0:35          Constant:
139 0:35            1 (const int)
140 0:35        Constant:
141 0:35          1.000000
142 0:37      Branch: Return with expression
143 0:37        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
144 0:24  Function Definition: main( ( temp void)
145 0:24    Function Parameters: 
146 0:?     Sequence
147 0:24      Sequence
148 0:24        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
149 0:24          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
150 0:24          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
151 0:24        move second child to first child ( temp 4-component vector of float)
152 0:?           'Color' (layout( location=0) out 4-component vector of float)
153 0:24          Color: direct index for structure ( temp 4-component vector of float)
154 0:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
155 0:24            Constant:
156 0:24              0 (const int)
157 0:24        move second child to first child ( temp float)
158 0:?           'Depth' ( out float FragDepth)
159 0:24          Depth: direct index for structure ( temp float)
160 0:24            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
161 0:24            Constant:
162 0:24              1 (const int)
163 0:?   Linker Objects
164 0:?     'g_tTexbfs_test' (layout( binding=0 r32f) uniform textureBuffer)
165 0:?     'g_tTexbfs' (layout( r32f) uniform textureBuffer)
166 0:?     'g_tTexbis' (layout( r32i) uniform itextureBuffer)
167 0:?     'g_tTexbus' (layout( r32ui) uniform utextureBuffer)
168 0:?     'anon@0' (layout( row_major std140) uniform block{ uniform int c1,  uniform 2-component vector of int c2,  uniform 3-component vector of int c3,  uniform 4-component vector of int c4,  uniform int o1,  uniform 2-component vector of int o2,  uniform 3-component vector of int o3,  uniform 4-component vector of int o4})
169 0:?     'Color' (layout( location=0) out 4-component vector of float)
170 0:?     'Depth' ( out float FragDepth)
171
172 // Module Version 10000
173 // Generated by (magic number): 80001
174 // Id's are bound by 75
175
176                               Capability Shader
177                               Capability SampledBuffer
178                1:             ExtInstImport  "GLSL.std.450"
179                               MemoryModel Logical GLSL450
180                               EntryPoint Fragment 4  "main" 67 71
181                               ExecutionMode 4 OriginUpperLeft
182                               Name 4  "main"
183                               Name 8  "PS_OUTPUT"
184                               MemberName 8(PS_OUTPUT) 0  "Color"
185                               MemberName 8(PS_OUTPUT) 1  "Depth"
186                               Name 10  "@main("
187                               Name 13  "r00"
188                               Name 16  "g_tTexbfs"
189                               Name 22  "$Global"
190                               MemberName 22($Global) 0  "c1"
191                               MemberName 22($Global) 1  "c2"
192                               MemberName 22($Global) 2  "c3"
193                               MemberName 22($Global) 3  "c4"
194                               MemberName 22($Global) 4  "o1"
195                               MemberName 22($Global) 5  "o2"
196                               MemberName 22($Global) 6  "o3"
197                               MemberName 22($Global) 7  "o4"
198                               Name 24  ""
199                               Name 32  "r01"
200                               Name 35  "g_tTexbis"
201                               Name 43  "r02"
202                               Name 46  "g_tTexbus"
203                               Name 54  "psout"
204                               Name 64  "flattenTemp"
205                               Name 67  "Color"
206                               Name 71  "Depth"
207                               Name 74  "g_tTexbfs_test"
208                               Decorate 16(g_tTexbfs) DescriptorSet 0
209                               MemberDecorate 22($Global) 0 Offset 0
210                               MemberDecorate 22($Global) 1 Offset 8
211                               MemberDecorate 22($Global) 2 Offset 16
212                               MemberDecorate 22($Global) 3 Offset 32
213                               MemberDecorate 22($Global) 4 Offset 48
214                               MemberDecorate 22($Global) 5 Offset 56
215                               MemberDecorate 22($Global) 6 Offset 64
216                               MemberDecorate 22($Global) 7 Offset 80
217                               Decorate 22($Global) Block
218                               Decorate 24 DescriptorSet 0
219                               Decorate 35(g_tTexbis) DescriptorSet 0
220                               Decorate 46(g_tTexbus) DescriptorSet 0
221                               Decorate 67(Color) Location 0
222                               Decorate 71(Depth) BuiltIn FragDepth
223                               Decorate 74(g_tTexbfs_test) DescriptorSet 0
224                               Decorate 74(g_tTexbfs_test) Binding 0
225                2:             TypeVoid
226                3:             TypeFunction 2
227                6:             TypeFloat 32
228                7:             TypeVector 6(float) 4
229     8(PS_OUTPUT):             TypeStruct 7(fvec4) 6(float)
230                9:             TypeFunction 8(PS_OUTPUT)
231               12:             TypePointer Function 6(float)
232               14:             TypeImage 6(float) Buffer sampled format:R32f
233               15:             TypePointer UniformConstant 14
234    16(g_tTexbfs):     15(ptr) Variable UniformConstant
235               18:             TypeInt 32 1
236               19:             TypeVector 18(int) 2
237               20:             TypeVector 18(int) 3
238               21:             TypeVector 18(int) 4
239      22($Global):             TypeStruct 18(int) 19(ivec2) 20(ivec3) 21(ivec4) 18(int) 19(ivec2) 20(ivec3) 21(ivec4)
240               23:             TypePointer Uniform 22($Global)
241               24:     23(ptr) Variable Uniform
242               25:     18(int) Constant 0
243               26:             TypePointer Uniform 18(int)
244               31:             TypePointer Function 18(int)
245               33:             TypeImage 18(int) Buffer sampled format:R32i
246               34:             TypePointer UniformConstant 33
247    35(g_tTexbis):     34(ptr) Variable UniformConstant
248               41:             TypeInt 32 0
249               42:             TypePointer Function 41(int)
250               44:             TypeImage 41(int) Buffer sampled format:R32ui
251               45:             TypePointer UniformConstant 44
252    46(g_tTexbus):     45(ptr) Variable UniformConstant
253               50:             TypeVector 41(int) 4
254               53:             TypePointer Function 8(PS_OUTPUT)
255               55:    6(float) Constant 1065353216
256               56:    7(fvec4) ConstantComposite 55 55 55 55
257               57:             TypePointer Function 7(fvec4)
258               59:     18(int) Constant 1
259               66:             TypePointer Output 7(fvec4)
260        67(Color):     66(ptr) Variable Output
261               70:             TypePointer Output 6(float)
262        71(Depth):     70(ptr) Variable Output
263 74(g_tTexbfs_test):     15(ptr) Variable UniformConstant
264          4(main):           2 Function None 3
265                5:             Label
266  64(flattenTemp):     53(ptr) Variable Function
267               65:8(PS_OUTPUT) FunctionCall 10(@main()
268                               Store 64(flattenTemp) 65
269               68:     57(ptr) AccessChain 64(flattenTemp) 25
270               69:    7(fvec4) Load 68
271                               Store 67(Color) 69
272               72:     12(ptr) AccessChain 64(flattenTemp) 59
273               73:    6(float) Load 72
274                               Store 71(Depth) 73
275                               Return
276                               FunctionEnd
277       10(@main():8(PS_OUTPUT) Function None 9
278               11:             Label
279          13(r00):     12(ptr) Variable Function
280          32(r01):     31(ptr) Variable Function
281          43(r02):     42(ptr) Variable Function
282        54(psout):     53(ptr) Variable Function
283               17:          14 Load 16(g_tTexbfs)
284               27:     26(ptr) AccessChain 24 25
285               28:     18(int) Load 27
286               29:    7(fvec4) ImageFetch 17 28
287               30:    6(float) CompositeExtract 29 0
288                               Store 13(r00) 30
289               36:          33 Load 35(g_tTexbis)
290               37:     26(ptr) AccessChain 24 25
291               38:     18(int) Load 37
292               39:   21(ivec4) ImageFetch 36 38
293               40:     18(int) CompositeExtract 39 0
294                               Store 32(r01) 40
295               47:          44 Load 46(g_tTexbus)
296               48:     26(ptr) AccessChain 24 25
297               49:     18(int) Load 48
298               51:   50(ivec4) ImageFetch 47 49
299               52:     41(int) CompositeExtract 51 0
300                               Store 43(r02) 52
301               58:     57(ptr) AccessChain 54(psout) 25
302                               Store 58 56
303               60:     12(ptr) AccessChain 54(psout) 59
304                               Store 60 55
305               61:8(PS_OUTPUT) Load 54(psout)
306                               ReturnValue 61
307                               FunctionEnd