yum-mirror/glslang

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

rjenningsFix some edge cases with vk memory model and memory qualifiers37b5bd72

main
4.1 KiB77 linesraw
1spv.memoryQualifier.swizzleReference.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 43
5
6                              Capability Shader
7                              Capability VulkanMemoryModelKHR
8                              Capability PhysicalStorageBufferAddressesEXT
9                              Extension  "SPV_KHR_physical_storage_buffer"
10                              Extension  "SPV_KHR_vulkan_memory_model"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel PhysicalStorageBuffer64EXT VulkanKHR
13                              EntryPoint GLCompute 4  "main"
14                              ExecutionMode 4 LocalSize 1 1 1
15                              Source GLSL 450
16                              SourceExtension  "GL_EXT_buffer_reference"
17                              Name 4  "main"
18                              Name 7  "Push"
19                              MemberName 7(Push) 0  "ref"
20                              Name 10  "Ref"
21                              MemberName 10(Ref) 0  "coherentValue"
22                              MemberName 10(Ref) 1  "volatileValue"
23                              MemberName 10(Ref) 2  "plainValue"
24                              Name 12  "pc"
25                              Decorate 7(Push) Block
26                              MemberDecorate 7(Push) 0 Offset 0
27                              Decorate 10(Ref) Block
28                              MemberDecorate 10(Ref) 0 Offset 0
29                              MemberDecorate 10(Ref) 1 Offset 8
30                              MemberDecorate 10(Ref) 2 Offset 16
31               2:             TypeVoid
32               3:             TypeFunction 2
33                              TypeForwardPointer 6 PhysicalStorageBufferEXT
34         7(Push):             TypeStruct 6
35               8:             TypeInt 32 0
36               9:             TypeVector 8(int) 2
37         10(Ref):             TypeStruct 9(ivec2) 9(ivec2) 9(ivec2)
38               6:             TypePointer PhysicalStorageBufferEXT 10(Ref)
39              11:             TypePointer PushConstant 7(Push)
40          12(pc):     11(ptr) Variable PushConstant
41              13:             TypeInt 32 1
42              14:     13(int) Constant 0
43              15:             TypePointer PushConstant 6(ptr)
44              18:      8(int) Constant 1
45              19:      8(int) Constant 2
46              20:    9(ivec2) ConstantComposite 18 19
47              21:             TypePointer PhysicalStorageBufferEXT 9(ivec2)
48              24:      8(int) Constant 5
49              28:     13(int) Constant 1
50              29:      8(int) Constant 3
51              30:      8(int) Constant 4
52              31:    9(ivec2) ConstantComposite 29 30
53              37:     13(int) Constant 2
54              38:      8(int) Constant 6
55              39:    9(ivec2) ConstantComposite 24 38
56         4(main):           2 Function None 3
57               5:             Label
58              16:     15(ptr) AccessChain 12(pc) 14
59              17:      6(ptr) Load 16
60              22:     21(ptr) AccessChain 17 14
61              23:    9(ivec2) Load 22 Aligned MakePointerVisibleKHR NonPrivatePointerKHR 4 24
62              25:    9(ivec2) VectorShuffle 23 20 3 2
63                              Store 22 25 Aligned MakePointerAvailableKHR NonPrivatePointerKHR 4 24
64              26:     15(ptr) AccessChain 12(pc) 14
65              27:      6(ptr) Load 26
66              32:     21(ptr) AccessChain 27 28
67              33:    9(ivec2) Load 32 Volatile Aligned MakePointerVisibleKHR NonPrivatePointerKHR 4 24
68              34:    9(ivec2) VectorShuffle 33 31 3 2
69                              Store 32 34 Volatile Aligned MakePointerAvailableKHR NonPrivatePointerKHR 4 24
70              35:     15(ptr) AccessChain 12(pc) 14
71              36:      6(ptr) Load 35
72              40:     21(ptr) AccessChain 36 37
73              41:    9(ivec2) Load 40 Aligned 4
74              42:    9(ivec2) VectorShuffle 41 39 3 2
75                              Store 40 42 Aligned 4
76                              Return
77                              FunctionEnd