yum-mirror/glslang

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

rjenningsFix some edge cases with vk memory model and memory qualifiers37b5bd72

main
2.2 KiB44 linesraw
1spv.memoryQualifier.incdec.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 21
5
6                              Capability Shader
7                              Capability VulkanMemoryModelKHR
8                              Extension  "SPV_KHR_vulkan_memory_model"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical VulkanKHR
11                              EntryPoint GLCompute 4  "main"
12                              ExecutionMode 4 LocalSize 1 1 1
13                              Source GLSL 450
14                              Name 4  "main"
15                              Name 7  "Data"
16                              MemberName 7(Data) 0  "value"
17                              Name 9  "data"
18                              Decorate 7(Data) Block
19                              MemberDecorate 7(Data) 0 Offset 0
20                              Decorate 9(data) Binding 0
21                              Decorate 9(data) DescriptorSet 0
22               2:             TypeVoid
23               3:             TypeFunction 2
24               6:             TypeInt 32 0
25         7(Data):             TypeStruct 6(int)
26               8:             TypePointer StorageBuffer 7(Data)
27         9(data):      8(ptr) Variable StorageBuffer
28              10:             TypeInt 32 1
29              11:     10(int) Constant 0
30              12:             TypePointer StorageBuffer 6(int)
31              15:      6(int) Constant 5
32              16:     10(int) Constant 1
33         4(main):           2 Function None 3
34               5:             Label
35              13:     12(ptr) AccessChain 9(data) 11
36              14:      6(int) Load 13 Volatile MakePointerVisibleKHR NonPrivatePointerKHR 15
37              17:      6(int) IAdd 14 16
38                              Store 13 17 Volatile MakePointerAvailableKHR NonPrivatePointerKHR 15
39              18:     12(ptr) AccessChain 9(data) 11
40              19:      6(int) Load 18 Volatile MakePointerVisibleKHR NonPrivatePointerKHR 15
41              20:      6(int) ISub 19 16
42                              Store 18 20 Volatile MakePointerAvailableKHR NonPrivatePointerKHR 15
43                              Return
44                              FunctionEnd