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