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.9 KiB58 linesraw
1spv.memoryQualifier.swizzleOut.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 32
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 13  "Data"
16                              MemberName 13(Data) 0  "value"
17                              Name 15  "data"
18                              Name 19  "swizzleTemp"
19                              Name 20  "ResType"
20                              Decorate 13(Data) Block
21                              MemberDecorate 13(Data) 0 Offset 0
22                              Decorate 15(data) Binding 0
23                              Decorate 15(data) DescriptorSet 0
24               2:             TypeVoid
25               3:             TypeFunction 2
26               6:             TypeInt 32 0
27               7:             TypeVector 6(int) 2
28               8:      6(int) Constant 1
29               9:    7(ivec2) ConstantComposite 8 8
30              10:      6(int) Constant 2
31              11:    7(ivec2) ConstantComposite 10 10
32              12:             TypeVector 6(int) 4
33        13(Data):             TypeStruct 12(ivec4)
34              14:             TypePointer StorageBuffer 13(Data)
35        15(data):     14(ptr) Variable StorageBuffer
36              16:             TypeInt 32 1
37              17:     16(int) Constant 0
38              18:             TypePointer Function 7(ivec2)
39     20(ResType):             TypeStruct 7(ivec2) 7(ivec2)
40              25:             TypePointer StorageBuffer 6(int)
41              28:      6(int) Constant 5
42              29:      6(int) Constant 0
43         4(main):           2 Function None 3
44               5:             Label
45 19(swizzleTemp):     18(ptr) Variable Function
46              21: 20(ResType) IAddCarry 9 11
47              22:    7(ivec2) CompositeExtract 21 1
48                              Store 19(swizzleTemp) 22
49              23:    7(ivec2) CompositeExtract 21 0
50              24:    7(ivec2) Load 19(swizzleTemp)
51              26:     25(ptr) AccessChain 15(data) 17 8
52              27:      6(int) CompositeExtract 24 0
53                              Store 26 27 Volatile MakePointerAvailableKHR NonPrivatePointerKHR 28
54              30:     25(ptr) AccessChain 15(data) 17 29
55              31:      6(int) CompositeExtract 24 1
56                              Store 30 31 Volatile MakePointerAvailableKHR NonPrivatePointerKHR 28
57                              Return
58                              FunctionEnd