1hlsl.structbuffer.rwbyte2.comp
2Shader version: 500
3local_size = (1, 1, 1)
40:? Sequence
50:6  Function Definition: @main( ( temp void)
60:6    Function Parameters:
70:?     Sequence
80:7      Sequence
90:7        move second child to first child ( temp uint)
100:7          'f' ( temp uint)
110:7          indirect index (layout( row_major std430) buffer uint)
120:7            @data: direct index for structure (layout( row_major std430) buffer unsized 1-element array of uint)
130:7              'g_bbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
140:7              Constant:
150:7                0 (const uint)
160:7            right-shift ( temp int)
170:7              Constant:
180:7                16 (const int)
190:7              Constant:
200:7                2 (const int)
210:8      move second child to first child ( temp uint)
220:8        direct index (layout( row_major std430) buffer uint)
230:8          @data: direct index for structure (layout( row_major std430) buffer unsized 1-element array of uint)
240:8            'g_sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
250:8            Constant:
260:8              0 (const uint)
270:8          Constant:
280:8            0 (const int)
290:8        'f' ( temp uint)
300:6  Function Definition: main( ( temp void)
310:6    Function Parameters:
320:?     Sequence
330:6      Function Call: @main( ( temp void)
340:?   Linker Objects
350:?     'g_sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
360:?     'g_bbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
37
38
39Linked compute stage:
40
41
42Shader version: 500
43local_size = (1, 1, 1)
440:? Sequence
450:6  Function Definition: @main( ( temp void)
460:6    Function Parameters:
470:?     Sequence
480:7      Sequence
490:7        move second child to first child ( temp uint)
500:7          'f' ( temp uint)
510:7          indirect index (layout( row_major std430) buffer uint)
520:7            @data: direct index for structure (layout( row_major std430) buffer unsized 1-element array of uint)
530:7              'g_bbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
540:7              Constant:
550:7                0 (const uint)
560:7            right-shift ( temp int)
570:7              Constant:
580:7                16 (const int)
590:7              Constant:
600:7                2 (const int)
610:8      move second child to first child ( temp uint)
620:8        direct index (layout( row_major std430) buffer uint)
630:8          @data: direct index for structure (layout( row_major std430) buffer unsized 1-element array of uint)
640:8            'g_sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
650:8            Constant:
660:8              0 (const uint)
670:8          Constant:
680:8            0 (const int)
690:8        'f' ( temp uint)
700:6  Function Definition: main( ( temp void)
710:6    Function Parameters:
720:?     Sequence
730:6      Function Call: @main( ( temp void)
740:?   Linker Objects
750:?     'g_sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
760:?     'g_bbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
77
78// Module Version 10000
79// Generated by (magic number): 8000b
80// Id's are bound by 30
81
82                              Capability Shader
83               1:             ExtInstImport  "GLSL.std.450"
84                              MemoryModel Logical GLSL450
85                              EntryPoint GLCompute 4  "main"
86                              ExecutionMode 4 LocalSize 1 1 1
87                              Source HLSL 500
88                              Name 4  "main"
89                              Name 6  "@main("
90                              Name 10  "f"
91                              Name 12  "g_bbuf"
92                              MemberName 12(g_bbuf) 0  "@data"
93                              Name 14  "g_bbuf"
94                              Name 24  "g_sbuf"
95                              MemberName 24(g_sbuf) 0  "@data"
96                              Name 26  "g_sbuf"
97                              Decorate 11 ArrayStride 4
98                              Decorate 12(g_bbuf) BufferBlock
99                              MemberDecorate 12(g_bbuf) 0 Offset 0
100                              Decorate 14(g_bbuf) Binding 1
101                              Decorate 14(g_bbuf) DescriptorSet 0
102                              Decorate 23 ArrayStride 4
103                              Decorate 24(g_sbuf) BufferBlock
104                              MemberDecorate 24(g_sbuf) 0 Offset 0
105                              Decorate 26(g_sbuf) Binding 0
106                              Decorate 26(g_sbuf) DescriptorSet 0
107               2:             TypeVoid
108               3:             TypeFunction 2
109               8:             TypeInt 32 0
110               9:             TypePointer Function 8(int)
111              11:             TypeRuntimeArray 8(int)
112      12(g_bbuf):             TypeStruct 11
113              13:             TypePointer Uniform 12(g_bbuf)
114      14(g_bbuf):     13(ptr) Variable Uniform
115              15:             TypeInt 32 1
116              16:     15(int) Constant 0
117              17:     15(int) Constant 16
118              18:     15(int) Constant 2
119              20:             TypePointer Uniform 8(int)
120              23:             TypeRuntimeArray 8(int)
121      24(g_sbuf):             TypeStruct 23
122              25:             TypePointer Uniform 24(g_sbuf)
123      26(g_sbuf):     25(ptr) Variable Uniform
124         4(main):           2 Function None 3
125               5:             Label
126              29:           2 FunctionCall 6(@main()
127                              Return
128                              FunctionEnd
129       6(@main():           2 Function None 3
130               7:             Label
131           10(f):      9(ptr) Variable Function
132              19:     15(int) ShiftRightArithmetic 17 18
133              21:     20(ptr) AccessChain 14(g_bbuf) 16 19
134              22:      8(int) Load 21
135                              Store 10(f) 22
136              27:      8(int) Load 10(f)
137              28:     20(ptr) AccessChain 26(g_sbuf) 16 16
138                              Store 28 27
139                              Return
140                              FunctionEnd
141