blob: f2a2767ae73fcb363bd67dda1b43a8606338073d [file] [log] [blame]
steve-lunarge404e082017-04-20 16:37:14 -06001hlsl.structbuffer.fn2.comp
2Shader version: 500
3local_size = (256, 1, 1)
40:? Sequence
50:5 Function Definition: testLoad(u1;block--u1[0]1; ( temp 2-component vector of uint)
60:5 Function Parameters:
70:5 'loc' ( in uint)
80:5 'buffer' (layout( row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
90:? Sequence
100:6 Sequence
110:6 move second child to first child ( temp 2-component vector of uint)
120:6 'result' ( temp 2-component vector of uint)
130:? Sequence
140:6 move second child to first child ( temp int)
150:6 'byteAddrTemp' ( temp int)
160:6 right-shift ( temp int)
170:6 'loc' ( in uint)
180:6 Constant:
190:6 2 (const int)
200:? Construct vec2 ( temp 2-component vector of uint)
Jean-François Marquis3f0aff82017-12-15 12:57:33 -0500210:6 indirect index ( temp uint)
steve-lunarge404e082017-04-20 16:37:14 -0600220:6 @data: direct index for structure (layout( row_major std430) buffer implicitly-sized array of uint)
230:6 'buffer' (layout( row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
240:6 Constant:
250:6 0 (const uint)
260:6 'byteAddrTemp' ( temp int)
Jean-François Marquis3f0aff82017-12-15 12:57:33 -0500270:6 indirect index ( temp uint)
steve-lunarge404e082017-04-20 16:37:14 -0600280:6 @data: direct index for structure (layout( row_major std430) buffer implicitly-sized array of uint)
290:6 'buffer' (layout( row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
300:6 Constant:
310:6 0 (const uint)
320:6 add ( temp int)
330:6 'byteAddrTemp' ( temp int)
340:6 Constant:
350:6 1 (const int)
360:7 Branch: Return with expression
370:7 'result' ( temp 2-component vector of uint)
380:12 Function Definition: @main(u1; ( temp void)
390:12 Function Parameters:
400:12 'dispatchId' ( in uint)
410:? Sequence
420:13 Sequence
430:13 move second child to first child ( temp 2-component vector of uint)
440:13 'result' ( temp 2-component vector of uint)
450:13 Function Call: testLoad(u1;block--u1[0]1; ( temp 2-component vector of uint)
460:13 'dispatchId' ( in uint)
470:13 'g_input' (layout( binding=0 row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
480:14 Sequence
490:14 imageStore ( temp void)
500:14 'g_output' (layout( binding=1 rg32ui) uniform uimageBuffer)
510:14 'dispatchId' ( in uint)
520:14 'result' ( temp 2-component vector of uint)
530:14 'result' ( temp 2-component vector of uint)
540:12 Function Definition: main( ( temp void)
550:12 Function Parameters:
560:? Sequence
570:12 move second child to first child ( temp uint)
580:? 'dispatchId' ( temp uint)
590:? 'dispatchId' ( in uint GlobalInvocationID)
600:12 Function Call: @main(u1; ( temp void)
610:? 'dispatchId' ( temp uint)
620:? Linker Objects
630:? 'g_input' (layout( binding=0 row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
640:? 'g_output' (layout( binding=1 rg32ui) uniform uimageBuffer)
650:? 'dispatchId' ( in uint GlobalInvocationID)
66
67
68Linked compute stage:
69
70
71Shader version: 500
72local_size = (256, 1, 1)
730:? Sequence
740:5 Function Definition: testLoad(u1;block--u1[0]1; ( temp 2-component vector of uint)
750:5 Function Parameters:
760:5 'loc' ( in uint)
770:5 'buffer' (layout( row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
780:? Sequence
790:6 Sequence
800:6 move second child to first child ( temp 2-component vector of uint)
810:6 'result' ( temp 2-component vector of uint)
820:? Sequence
830:6 move second child to first child ( temp int)
840:6 'byteAddrTemp' ( temp int)
850:6 right-shift ( temp int)
860:6 'loc' ( in uint)
870:6 Constant:
880:6 2 (const int)
890:? Construct vec2 ( temp 2-component vector of uint)
Jean-François Marquis3f0aff82017-12-15 12:57:33 -0500900:6 indirect index ( temp uint)
steve-lunarge404e082017-04-20 16:37:14 -0600910:6 @data: direct index for structure (layout( row_major std430) buffer implicitly-sized array of uint)
920:6 'buffer' (layout( row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
930:6 Constant:
940:6 0 (const uint)
950:6 'byteAddrTemp' ( temp int)
Jean-François Marquis3f0aff82017-12-15 12:57:33 -0500960:6 indirect index ( temp uint)
steve-lunarge404e082017-04-20 16:37:14 -0600970:6 @data: direct index for structure (layout( row_major std430) buffer implicitly-sized array of uint)
980:6 'buffer' (layout( row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
990:6 Constant:
1000:6 0 (const uint)
1010:6 add ( temp int)
1020:6 'byteAddrTemp' ( temp int)
1030:6 Constant:
1040:6 1 (const int)
1050:7 Branch: Return with expression
1060:7 'result' ( temp 2-component vector of uint)
1070:12 Function Definition: @main(u1; ( temp void)
1080:12 Function Parameters:
1090:12 'dispatchId' ( in uint)
1100:? Sequence
1110:13 Sequence
1120:13 move second child to first child ( temp 2-component vector of uint)
1130:13 'result' ( temp 2-component vector of uint)
1140:13 Function Call: testLoad(u1;block--u1[0]1; ( temp 2-component vector of uint)
1150:13 'dispatchId' ( in uint)
1160:13 'g_input' (layout( binding=0 row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
1170:14 Sequence
1180:14 imageStore ( temp void)
1190:14 'g_output' (layout( binding=1 rg32ui) uniform uimageBuffer)
1200:14 'dispatchId' ( in uint)
1210:14 'result' ( temp 2-component vector of uint)
1220:14 'result' ( temp 2-component vector of uint)
1230:12 Function Definition: main( ( temp void)
1240:12 Function Parameters:
1250:? Sequence
1260:12 move second child to first child ( temp uint)
1270:? 'dispatchId' ( temp uint)
1280:? 'dispatchId' ( in uint GlobalInvocationID)
1290:12 Function Call: @main(u1; ( temp void)
1300:? 'dispatchId' ( temp uint)
1310:? Linker Objects
1320:? 'g_input' (layout( binding=0 row_major std430) readonly buffer block{layout( row_major std430) buffer implicitly-sized array of uint @data})
1330:? 'g_output' (layout( binding=1 rg32ui) uniform uimageBuffer)
1340:? 'dispatchId' ( in uint GlobalInvocationID)
135
John Kessenich2b5ea9f2018-01-31 18:35:56 -0700136// Module Version 10000
John Kessenich0216f242018-03-03 11:47:07 -0700137// Generated by (magic number): 80005
John Kessenich6a14f782017-12-04 02:48:10 -0700138// Id's are bound by 61
steve-lunarge404e082017-04-20 16:37:14 -0600139
140 Capability Shader
John Kessenich260f5062017-08-14 22:10:00 -0600141 Capability ImageBuffer
steve-lunarge404e082017-04-20 16:37:14 -0600142 Capability StorageImageExtendedFormats
143 1: ExtInstImport "GLSL.std.450"
144 MemoryModel Logical GLSL450
John Kessenich6a14f782017-12-04 02:48:10 -0700145 EntryPoint GLCompute 4 "main" 56
steve-lunarge404e082017-04-20 16:37:14 -0600146 ExecutionMode 4 LocalSize 256 1 1
147 Source HLSL 500
148 Name 4 "main"
149 Name 9 ""
150 MemberName 9 0 "@data"
151 Name 15 "testLoad(u1;block--u1[0]1;"
152 Name 13 "loc"
153 Name 14 "buffer"
154 Name 19 "@main(u1;"
155 Name 18 "dispatchId"
156 Name 22 "result"
157 Name 25 "byteAddrTemp"
John Kessenich6a14f782017-12-04 02:48:10 -0700158 Name 43 "result"
steve-lunarge404e082017-04-20 16:37:14 -0600159 Name 44 "g_input"
160 Name 45 "param"
John Kessenich6a14f782017-12-04 02:48:10 -0700161 Name 50 "g_output"
162 Name 54 "dispatchId"
163 Name 56 "dispatchId"
164 Name 58 "param"
steve-lunarge404e082017-04-20 16:37:14 -0600165 Decorate 8 ArrayStride 4
166 MemberDecorate 9 0 NonWritable
167 MemberDecorate 9 0 Offset 0
168 Decorate 9 BufferBlock
John Kessenich961cd352017-07-18 02:58:06 -0600169 Decorate 14(buffer) NonWritable
steve-lunarge404e082017-04-20 16:37:14 -0600170 Decorate 44(g_input) DescriptorSet 0
171 Decorate 44(g_input) Binding 0
John Kessenich6a14f782017-12-04 02:48:10 -0700172 Decorate 50(g_output) DescriptorSet 0
173 Decorate 50(g_output) Binding 1
174 Decorate 56(dispatchId) BuiltIn GlobalInvocationId
steve-lunarge404e082017-04-20 16:37:14 -0600175 2: TypeVoid
176 3: TypeFunction 2
177 6: TypeInt 32 0
178 7: TypePointer Function 6(int)
179 8: TypeRuntimeArray 6(int)
180 9: TypeStruct 8
John Kessenich6a14f782017-12-04 02:48:10 -0700181 10: TypePointer Uniform 9(struct)
steve-lunarge404e082017-04-20 16:37:14 -0600182 11: TypeVector 6(int) 2
183 12: TypeFunction 11(ivec2) 7(ptr) 10(ptr)
184 17: TypeFunction 2 7(ptr)
185 21: TypePointer Function 11(ivec2)
186 23: TypeInt 32 1
187 24: TypePointer Function 23(int)
188 27: 23(int) Constant 2
189 29: 23(int) Constant 0
John Kessenich6a14f782017-12-04 02:48:10 -0700190 31: TypePointer Uniform 6(int)
191 35: 23(int) Constant 1
192 44(g_input): 10(ptr) Variable Uniform
193 48: TypeImage 6(int) Buffer nonsampled format:Rg32ui
194 49: TypePointer UniformConstant 48
195 50(g_output): 49(ptr) Variable UniformConstant
196 55: TypePointer Input 6(int)
197 56(dispatchId): 55(ptr) Variable Input
steve-lunarge404e082017-04-20 16:37:14 -0600198 4(main): 2 Function None 3
199 5: Label
John Kessenich6a14f782017-12-04 02:48:10 -0700200 54(dispatchId): 7(ptr) Variable Function
201 58(param): 7(ptr) Variable Function
202 57: 6(int) Load 56(dispatchId)
203 Store 54(dispatchId) 57
204 59: 6(int) Load 54(dispatchId)
205 Store 58(param) 59
206 60: 2 FunctionCall 19(@main(u1;) 58(param)
steve-lunarge404e082017-04-20 16:37:14 -0600207 Return
208 FunctionEnd
20915(testLoad(u1;block--u1[0]1;): 11(ivec2) Function None 12
210 13(loc): 7(ptr) FunctionParameter
211 14(buffer): 10(ptr) FunctionParameter
212 16: Label
213 22(result): 21(ptr) Variable Function
21425(byteAddrTemp): 24(ptr) Variable Function
215 26: 6(int) Load 13(loc)
216 28: 23(int) ShiftRightLogical 26 27
217 Store 25(byteAddrTemp) 28
218 30: 23(int) Load 25(byteAddrTemp)
John Kessenich6a14f782017-12-04 02:48:10 -0700219 32: 31(ptr) AccessChain 14(buffer) 29 30
220 33: 6(int) Load 32
221 34: 23(int) Load 25(byteAddrTemp)
222 36: 23(int) IAdd 34 35
223 37: 31(ptr) AccessChain 14(buffer) 29 36
224 38: 6(int) Load 37
225 39: 11(ivec2) CompositeConstruct 33 38
226 Store 22(result) 39
227 40: 11(ivec2) Load 22(result)
228 ReturnValue 40
steve-lunarge404e082017-04-20 16:37:14 -0600229 FunctionEnd
230 19(@main(u1;): 2 Function None 17
231 18(dispatchId): 7(ptr) FunctionParameter
232 20: Label
John Kessenich6a14f782017-12-04 02:48:10 -0700233 43(result): 21(ptr) Variable Function
steve-lunarge404e082017-04-20 16:37:14 -0600234 45(param): 7(ptr) Variable Function
235 46: 6(int) Load 18(dispatchId)
236 Store 45(param) 46
John Kessenich6a14f782017-12-04 02:48:10 -0700237 47: 11(ivec2) FunctionCall 15(testLoad(u1;block--u1[0]1;) 45(param) 44(g_input)
238 Store 43(result) 47
239 51: 48 Load 50(g_output)
240 52: 6(int) Load 18(dispatchId)
241 53: 11(ivec2) Load 43(result)
242 ImageWrite 51 52 53
steve-lunarge404e082017-04-20 16:37:14 -0600243 Return
244 FunctionEnd