ea8bdd2dda4f68b2c27564d9bd7ff339f475a6e7
[platform/upstream/glslang.git] / Test / baseResults / hlsl.load.rwbuffer.dx10.frag.out
1 hlsl.load.rwbuffer.dx10.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:22  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
6 0:22    Function Parameters: 
7 0:?     Sequence
8 0:25      imageLoad ( temp 4-component vector of float)
9 0:25        'g_tBuffF' (layout( rgba32f) uniform imageBuffer)
10 0:25        c1: direct index for structure ( uniform int)
11 0:25          '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})
12 0:25          Constant:
13 0:25            0 (const uint)
14 0:26      imageLoad ( temp 4-component vector of uint)
15 0:26        'g_tBuffU' (layout( rgba32ui) uniform uimageBuffer)
16 0:26        c1: direct index for structure ( uniform int)
17 0:26          '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})
18 0:26          Constant:
19 0:26            0 (const uint)
20 0:27      imageLoad ( temp 4-component vector of int)
21 0:27        'g_tBuffI' (layout( rgba32i) uniform iimageBuffer)
22 0:27        c1: direct index for structure ( uniform int)
23 0:27          '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})
24 0:27          Constant:
25 0:27            0 (const uint)
26 0:29      move second child to first child ( temp 4-component vector of float)
27 0:29        Color: direct index for structure ( temp 4-component vector of float)
28 0:29          'psout' ( temp structure{ temp 4-component vector of float Color})
29 0:29          Constant:
30 0:29            0 (const int)
31 0:29        Constant:
32 0:29          1.000000
33 0:29          1.000000
34 0:29          1.000000
35 0:29          1.000000
36 0:31      Branch: Return with expression
37 0:31        'psout' ( temp structure{ temp 4-component vector of float Color})
38 0:22  Function Definition: main( ( temp void)
39 0:22    Function Parameters: 
40 0:?     Sequence
41 0:22      Sequence
42 0:22        move second child to first child ( temp 4-component vector of float)
43 0:?           'Color' (layout( location=0) out 4-component vector of float)
44 0:22          Color: direct index for structure ( temp 4-component vector of float)
45 0:22            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
46 0:22            Constant:
47 0:22              0 (const int)
48 0:?   Linker Objects
49 0:?     'g_tBuffF' (layout( rgba32f) uniform imageBuffer)
50 0:?     'g_tBuffI' (layout( rgba32i) uniform iimageBuffer)
51 0:?     'g_tBuffU' (layout( rgba32ui) uniform uimageBuffer)
52 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})
53 0:?     'Color' (layout( location=0) out 4-component vector of float)
54
55
56 Linked fragment stage:
57
58
59 Shader version: 450
60 gl_FragCoord origin is upper left
61 0:? Sequence
62 0:22  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
63 0:22    Function Parameters: 
64 0:?     Sequence
65 0:25      imageLoad ( temp 4-component vector of float)
66 0:25        'g_tBuffF' (layout( rgba32f) uniform imageBuffer)
67 0:25        c1: direct index for structure ( uniform int)
68 0:25          '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})
69 0:25          Constant:
70 0:25            0 (const uint)
71 0:26      imageLoad ( temp 4-component vector of uint)
72 0:26        'g_tBuffU' (layout( rgba32ui) uniform uimageBuffer)
73 0:26        c1: direct index for structure ( uniform int)
74 0:26          '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})
75 0:26          Constant:
76 0:26            0 (const uint)
77 0:27      imageLoad ( temp 4-component vector of int)
78 0:27        'g_tBuffI' (layout( rgba32i) uniform iimageBuffer)
79 0:27        c1: direct index for structure ( uniform int)
80 0:27          '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})
81 0:27          Constant:
82 0:27            0 (const uint)
83 0:29      move second child to first child ( temp 4-component vector of float)
84 0:29        Color: direct index for structure ( temp 4-component vector of float)
85 0:29          'psout' ( temp structure{ temp 4-component vector of float Color})
86 0:29          Constant:
87 0:29            0 (const int)
88 0:29        Constant:
89 0:29          1.000000
90 0:29          1.000000
91 0:29          1.000000
92 0:29          1.000000
93 0:31      Branch: Return with expression
94 0:31        'psout' ( temp structure{ temp 4-component vector of float Color})
95 0:22  Function Definition: main( ( temp void)
96 0:22    Function Parameters: 
97 0:?     Sequence
98 0:22      Sequence
99 0:22        move second child to first child ( temp 4-component vector of float)
100 0:?           'Color' (layout( location=0) out 4-component vector of float)
101 0:22          Color: direct index for structure ( temp 4-component vector of float)
102 0:22            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
103 0:22            Constant:
104 0:22              0 (const int)
105 0:?   Linker Objects
106 0:?     'g_tBuffF' (layout( rgba32f) uniform imageBuffer)
107 0:?     'g_tBuffI' (layout( rgba32i) uniform iimageBuffer)
108 0:?     'g_tBuffU' (layout( rgba32ui) uniform uimageBuffer)
109 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})
110 0:?     'Color' (layout( location=0) out 4-component vector of float)
111
112 // Module Version 10000
113 // Generated by (magic number): 80001
114 // Id's are bound by 57
115
116                               Capability Shader
117                               Capability SampledBuffer
118                1:             ExtInstImport  "GLSL.std.450"
119                               MemoryModel Logical GLSL450
120                               EntryPoint Fragment 4  "main" 54
121                               ExecutionMode 4 OriginUpperLeft
122                               Name 4  "main"
123                               Name 8  "PS_OUTPUT"
124                               MemberName 8(PS_OUTPUT) 0  "Color"
125                               Name 10  "@main("
126                               Name 14  "g_tBuffF"
127                               Name 20  "$Global"
128                               MemberName 20($Global) 0  "c1"
129                               MemberName 20($Global) 1  "c2"
130                               MemberName 20($Global) 2  "c3"
131                               MemberName 20($Global) 3  "c4"
132                               MemberName 20($Global) 4  "o1"
133                               MemberName 20($Global) 5  "o2"
134                               MemberName 20($Global) 6  "o3"
135                               MemberName 20($Global) 7  "o4"
136                               Name 22  ""
137                               Name 31  "g_tBuffU"
138                               Name 39  "g_tBuffI"
139                               Name 45  "psout"
140                               Name 54  "Color"
141                               Decorate 14(g_tBuffF) DescriptorSet 0
142                               MemberDecorate 20($Global) 0 Offset 0
143                               MemberDecorate 20($Global) 1 Offset 8
144                               MemberDecorate 20($Global) 2 Offset 16
145                               MemberDecorate 20($Global) 3 Offset 32
146                               MemberDecorate 20($Global) 4 Offset 48
147                               MemberDecorate 20($Global) 5 Offset 56
148                               MemberDecorate 20($Global) 6 Offset 64
149                               MemberDecorate 20($Global) 7 Offset 80
150                               Decorate 20($Global) Block
151                               Decorate 22 DescriptorSet 0
152                               Decorate 31(g_tBuffU) DescriptorSet 0
153                               Decorate 39(g_tBuffI) DescriptorSet 0
154                               Decorate 54(Color) Location 0
155                2:             TypeVoid
156                3:             TypeFunction 2
157                6:             TypeFloat 32
158                7:             TypeVector 6(float) 4
159     8(PS_OUTPUT):             TypeStruct 7(fvec4)
160                9:             TypeFunction 8(PS_OUTPUT)
161               12:             TypeImage 6(float) Buffer nonsampled format:Rgba32f
162               13:             TypePointer UniformConstant 12
163     14(g_tBuffF):     13(ptr) Variable UniformConstant
164               16:             TypeInt 32 1
165               17:             TypeVector 16(int) 2
166               18:             TypeVector 16(int) 3
167               19:             TypeVector 16(int) 4
168      20($Global):             TypeStruct 16(int) 17(ivec2) 18(ivec3) 19(ivec4) 16(int) 17(ivec2) 18(ivec3) 19(ivec4)
169               21:             TypePointer Uniform 20($Global)
170               22:     21(ptr) Variable Uniform
171               23:     16(int) Constant 0
172               24:             TypePointer Uniform 16(int)
173               28:             TypeInt 32 0
174               29:             TypeImage 28(int) Buffer nonsampled format:Rgba32ui
175               30:             TypePointer UniformConstant 29
176     31(g_tBuffU):     30(ptr) Variable UniformConstant
177               35:             TypeVector 28(int) 4
178               37:             TypeImage 16(int) Buffer nonsampled format:Rgba32i
179               38:             TypePointer UniformConstant 37
180     39(g_tBuffI):     38(ptr) Variable UniformConstant
181               44:             TypePointer Function 8(PS_OUTPUT)
182               46:    6(float) Constant 1065353216
183               47:    7(fvec4) ConstantComposite 46 46 46 46
184               48:             TypePointer Function 7(fvec4)
185               53:             TypePointer Output 7(fvec4)
186        54(Color):     53(ptr) Variable Output
187          4(main):           2 Function None 3
188                5:             Label
189               55:8(PS_OUTPUT) FunctionCall 10(@main()
190               56:    7(fvec4) CompositeExtract 55 0
191                               Store 54(Color) 56
192                               Return
193                               FunctionEnd
194       10(@main():8(PS_OUTPUT) Function None 9
195               11:             Label
196        45(psout):     44(ptr) Variable Function
197               15:          12 Load 14(g_tBuffF)
198               25:     24(ptr) AccessChain 22 23
199               26:     16(int) Load 25
200               27:    7(fvec4) ImageRead 15 26
201               32:          29 Load 31(g_tBuffU)
202               33:     24(ptr) AccessChain 22 23
203               34:     16(int) Load 33
204               36:   35(ivec4) ImageRead 32 34
205               40:          37 Load 39(g_tBuffI)
206               41:     24(ptr) AccessChain 22 23
207               42:     16(int) Load 41
208               43:   19(ivec4) ImageRead 40 42
209               49:     48(ptr) AccessChain 45(psout) 23
210                               Store 49 47
211               50:8(PS_OUTPUT) Load 45(psout)
212                               ReturnValue 50
213                               FunctionEnd