1hlsl.load.rwbuffer.dx10.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:22  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
60:22    Function Parameters:
70:?     Sequence
80:25      imageLoad ( temp 4-component vector of float)
90:25        'g_tBuffF' (layout( rgba32f) uniform imageBuffer)
100:25        c1: direct index for structure ( uniform int)
110: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})
120:25          Constant:
130:25            0 (const uint)
140:26      imageLoad ( temp 4-component vector of uint)
150:26        'g_tBuffU' (layout( rgba32ui) uniform uimageBuffer)
160:26        c1: direct index for structure ( uniform int)
170: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})
180:26          Constant:
190:26            0 (const uint)
200:27      imageLoad ( temp 4-component vector of int)
210:27        'g_tBuffI' (layout( rgba32i) uniform iimageBuffer)
220:27        c1: direct index for structure ( uniform int)
230: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})
240:27          Constant:
250:27            0 (const uint)
260:29      move second child to first child ( temp 4-component vector of float)
270:29        Color: direct index for structure ( temp 4-component vector of float)
280:29          'psout' ( temp structure{ temp 4-component vector of float Color})
290:29          Constant:
300:29            0 (const int)
310:29        Constant:
320:29          1.000000
330:29          1.000000
340:29          1.000000
350:29          1.000000
360:31      Branch: Return with expression
370:31        'psout' ( temp structure{ temp 4-component vector of float Color})
380:22  Function Definition: main( ( temp void)
390:22    Function Parameters:
400:?     Sequence
410:22      Sequence
420:22        move second child to first child ( temp 4-component vector of float)
430:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
440:22          Color: direct index for structure ( temp 4-component vector of float)
450:22            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
460:22            Constant:
470:22              0 (const int)
480:?   Linker Objects
490:?     'g_tBuffF' (layout( rgba32f) uniform imageBuffer)
500:?     'g_tBuffI' (layout( rgba32i) uniform iimageBuffer)
510:?     'g_tBuffU' (layout( rgba32ui) uniform uimageBuffer)
520:?     '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})
530:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
54
55
56Linked fragment stage:
57
58
59Shader version: 500
60gl_FragCoord origin is upper left
610:? Sequence
620:22  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
630:22    Function Parameters:
640:?     Sequence
650:25      imageLoad ( temp 4-component vector of float)
660:25        'g_tBuffF' (layout( rgba32f) uniform imageBuffer)
670:25        c1: direct index for structure ( uniform int)
680: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})
690:25          Constant:
700:25            0 (const uint)
710:26      imageLoad ( temp 4-component vector of uint)
720:26        'g_tBuffU' (layout( rgba32ui) uniform uimageBuffer)
730:26        c1: direct index for structure ( uniform int)
740: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})
750:26          Constant:
760:26            0 (const uint)
770:27      imageLoad ( temp 4-component vector of int)
780:27        'g_tBuffI' (layout( rgba32i) uniform iimageBuffer)
790:27        c1: direct index for structure ( uniform int)
800: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})
810:27          Constant:
820:27            0 (const uint)
830:29      move second child to first child ( temp 4-component vector of float)
840:29        Color: direct index for structure ( temp 4-component vector of float)
850:29          'psout' ( temp structure{ temp 4-component vector of float Color})
860:29          Constant:
870:29            0 (const int)
880:29        Constant:
890:29          1.000000
900:29          1.000000
910:29          1.000000
920:29          1.000000
930:31      Branch: Return with expression
940:31        'psout' ( temp structure{ temp 4-component vector of float Color})
950:22  Function Definition: main( ( temp void)
960:22    Function Parameters:
970:?     Sequence
980:22      Sequence
990:22        move second child to first child ( temp 4-component vector of float)
1000:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1010:22          Color: direct index for structure ( temp 4-component vector of float)
1020:22            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
1030:22            Constant:
1040:22              0 (const int)
1050:?   Linker Objects
1060:?     'g_tBuffF' (layout( rgba32f) uniform imageBuffer)
1070:?     'g_tBuffI' (layout( rgba32i) uniform iimageBuffer)
1080:?     'g_tBuffU' (layout( rgba32ui) uniform uimageBuffer)
1090:?     '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})
1100:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
111
112// Module Version 10000
113// Generated by (magic number): 80007
114// Id's are bound by 57
115
116                              Capability Shader
117                              Capability ImageBuffer
118               1:             ExtInstImport  "GLSL.std.450"
119                              MemoryModel Logical GLSL450
120                              EntryPoint Fragment 4  "main" 54
121                              ExecutionMode 4 OriginUpperLeft
122                              Source HLSL 500
123                              Name 4  "main"
124                              Name 8  "PS_OUTPUT"
125                              MemberName 8(PS_OUTPUT) 0  "Color"
126                              Name 10  "@main("
127                              Name 14  "g_tBuffF"
128                              Name 20  "$Global"
129                              MemberName 20($Global) 0  "c1"
130                              MemberName 20($Global) 1  "c2"
131                              MemberName 20($Global) 2  "c3"
132                              MemberName 20($Global) 3  "c4"
133                              MemberName 20($Global) 4  "o1"
134                              MemberName 20($Global) 5  "o2"
135                              MemberName 20($Global) 6  "o3"
136                              MemberName 20($Global) 7  "o4"
137                              Name 22  ""
138                              Name 31  "g_tBuffU"
139                              Name 39  "g_tBuffI"
140                              Name 45  "psout"
141                              Name 54  "@entryPointOutput.Color"
142                              Decorate 14(g_tBuffF) DescriptorSet 0
143                              MemberDecorate 20($Global) 0 Offset 0
144                              MemberDecorate 20($Global) 1 Offset 8
145                              MemberDecorate 20($Global) 2 Offset 16
146                              MemberDecorate 20($Global) 3 Offset 32
147                              MemberDecorate 20($Global) 4 Offset 48
148                              MemberDecorate 20($Global) 5 Offset 56
149                              MemberDecorate 20($Global) 6 Offset 64
150                              MemberDecorate 20($Global) 7 Offset 80
151                              Decorate 20($Global) Block
152                              Decorate 22 DescriptorSet 0
153                              Decorate 31(g_tBuffU) DescriptorSet 0
154                              Decorate 39(g_tBuffI) DescriptorSet 0
155                              Decorate 54(@entryPointOutput.Color) Location 0
156               2:             TypeVoid
157               3:             TypeFunction 2
158               6:             TypeFloat 32
159               7:             TypeVector 6(float) 4
160    8(PS_OUTPUT):             TypeStruct 7(fvec4)
161               9:             TypeFunction 8(PS_OUTPUT)
162              12:             TypeImage 6(float) Buffer nonsampled format:Rgba32f
163              13:             TypePointer UniformConstant 12
164    14(g_tBuffF):     13(ptr) Variable UniformConstant
165              16:             TypeInt 32 1
166              17:             TypeVector 16(int) 2
167              18:             TypeVector 16(int) 3
168              19:             TypeVector 16(int) 4
169     20($Global):             TypeStruct 16(int) 17(ivec2) 18(ivec3) 19(ivec4) 16(int) 17(ivec2) 18(ivec3) 19(ivec4)
170              21:             TypePointer Uniform 20($Global)
171              22:     21(ptr) Variable Uniform
172              23:     16(int) Constant 0
173              24:             TypePointer Uniform 16(int)
174              28:             TypeInt 32 0
175              29:             TypeImage 28(int) Buffer nonsampled format:Rgba32ui
176              30:             TypePointer UniformConstant 29
177    31(g_tBuffU):     30(ptr) Variable UniformConstant
178              35:             TypeVector 28(int) 4
179              37:             TypeImage 16(int) Buffer nonsampled format:Rgba32i
180              38:             TypePointer UniformConstant 37
181    39(g_tBuffI):     38(ptr) Variable UniformConstant
182              44:             TypePointer Function 8(PS_OUTPUT)
183              46:    6(float) Constant 1065353216
184              47:    7(fvec4) ConstantComposite 46 46 46 46
185              48:             TypePointer Function 7(fvec4)
186              53:             TypePointer Output 7(fvec4)
18754(@entryPointOutput.Color):     53(ptr) Variable Output
188         4(main):           2 Function None 3
189               5:             Label
190              55:8(PS_OUTPUT) FunctionCall 10(@main()
191              56:    7(fvec4) CompositeExtract 55 0
192                              Store 54(@entryPointOutput.Color) 56
193                              Return
194                              FunctionEnd
195      10(@main():8(PS_OUTPUT) Function None 9
196              11:             Label
197       45(psout):     44(ptr) Variable Function
198              15:          12 Load 14(g_tBuffF)
199              25:     24(ptr) AccessChain 22 23
200              26:     16(int) Load 25
201              27:    7(fvec4) ImageRead 15 26
202              32:          29 Load 31(g_tBuffU)
203              33:     24(ptr) AccessChain 22 23
204              34:     16(int) Load 33
205              36:   35(ivec4) ImageRead 32 34
206              40:          37 Load 39(g_tBuffI)
207              41:     24(ptr) AccessChain 22 23
208              42:     16(int) Load 41
209              43:   19(ivec4) ImageRead 40 42
210              49:     48(ptr) AccessChain 45(psout) 23
211                              Store 49 47
212              50:8(PS_OUTPUT) Load 45(psout)
213                              ReturnValue 50
214                              FunctionEnd
215