yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Saddamfix oob slot access for atomic_uint in reserverResourceSlotaa165943

main
3.1 KiB72 linesraw
1iomap.atomicCounter.frag
2Shader version: 460
30:? Sequence
40:7  Function Definition: main( ( global void)
50:7    Function Parameters: 
60:9    Sequence
70:9      move second child to first child ( temp 4-component vector of float)
80:9        'Output' (layout( location=0) out 4-component vector of float)
90:9        Construct vec4 ( temp 4-component vector of float)
100:9          Convert uint to float ( temp float)
110:9            AtomicCounter ( global uint)
120:9              'counter' (layout( binding=0 offset=0) uniform atomic_uint)
130:?   Linker Objects
140:?     'counter' (layout( binding=0 offset=0) uniform atomic_uint)
150:?     'Output' (layout( location=0) out 4-component vector of float)
16
17
18Linked fragment stage:
19
20
21Shader version: 460
220:? Sequence
230:7  Function Definition: main( ( global void)
240:7    Function Parameters: 
250:9    Sequence
260:9      move second child to first child ( temp 4-component vector of float)
270:9        'Output' (layout( location=0) out 4-component vector of float)
280:9        Construct vec4 ( temp 4-component vector of float)
290:9          Convert uint to float ( temp float)
300:9            AtomicCounter ( global uint)
310:9              'counter' (layout( binding=0 offset=0) uniform atomic_uint)
320:?   Linker Objects
330:?     'counter' (layout( binding=0 offset=0) uniform atomic_uint)
340:?     'Output' (layout( location=0) out 4-component vector of float)
35
36// Module Version 10000
37// Generated by (magic number): 8000b
38// Id's are bound by 18
39
40                              Capability Shader
41                              Capability AtomicStorage
42               1:             ExtInstImport  "GLSL.std.450"
43                              MemoryModel Logical GLSL450
44                              EntryPoint Fragment 4  "main" 9
45                              ExecutionMode 4 OriginLowerLeft
46                              Source GLSL 460
47                              Name 4  "main"
48                              Name 9  "Output"
49                              Name 12  "counter"
50                              Decorate 9(Output) Location 0
51                              Decorate 12(counter) Binding 0
52                              Decorate 12(counter) DescriptorSet 0
53                              Decorate 12(counter) Offset 0
54               2:             TypeVoid
55               3:             TypeFunction 2
56               6:             TypeFloat 32
57               7:             TypeVector 6(float) 4
58               8:             TypePointer Output 7(fvec4)
59       9(Output):      8(ptr) Variable Output
60              10:             TypeInt 32 0
61              11:             TypePointer AtomicCounter 10(int)
62     12(counter):     11(ptr) Variable AtomicCounter
63              13:     10(int) Constant 1
64              14:     10(int) Constant 0
65         4(main):           2 Function None 3
66               5:             Label
67              15:     10(int) AtomicLoad 12(counter) 13 14
68              16:    6(float) ConvertUToF 15
69              17:    7(fvec4) CompositeConstruct 16 16 16 16
70                              Store 9(Output) 17
71                              Return
72                              FunctionEnd