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 KiB56 linesraw
1spv.bufferReference.memoryModel.shadercall.rgen
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 24
5
6                              Capability RayTracingKHR
7                              Capability VulkanMemoryModelKHR
8                              Capability PhysicalStorageBufferAddressesEXT
9                              Extension  "SPV_KHR_physical_storage_buffer"
10                              Extension  "SPV_KHR_ray_tracing"
11                              Extension  "SPV_KHR_vulkan_memory_model"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel PhysicalStorageBuffer64EXT VulkanKHR
14                              EntryPoint RayGenerationKHR 4  "main" 13
15                              Source GLSL 460
16                              SourceExtension  "GL_EXT_buffer_reference"
17                              SourceExtension  "GL_EXT_ray_tracing"
18                              Name 4  "main"
19                              Name 8  "Ref"
20                              MemberName 8(Ref) 0  "value"
21                              Name 10  "ref"
22                              Name 11  "Push"
23                              MemberName 11(Push) 0  "ref"
24                              Name 13  "pc"
25                              Decorate 8(Ref) Block
26                              MemberDecorate 8(Ref) 0 Offset 0
27                              Decorate 10(ref) DecorationAliasedPointerEXT
28                              Decorate 11(Push) Block
29                              MemberDecorate 11(Push) 0 Offset 0
30               2:             TypeVoid
31               3:             TypeFunction 2
32                              TypeForwardPointer 6 PhysicalStorageBufferEXT
33               7:             TypeInt 32 0
34          8(Ref):             TypeStruct 7(int)
35               6:             TypePointer PhysicalStorageBufferEXT 8(Ref)
36               9:             TypePointer Function 6(ptr)
37        11(Push):             TypeStruct 6(ptr)
38              12:             TypePointer PushConstant 11(Push)
39          13(pc):     12(ptr) Variable PushConstant
40              14:             TypeInt 32 1
41              15:     14(int) Constant 0
42              16:             TypePointer PushConstant 6(ptr)
43              20:      7(int) Constant 5
44              21:             TypePointer PhysicalStorageBufferEXT 7(int)
45              23:      7(int) Constant 6
46         4(main):           2 Function None 3
47               5:             Label
48         10(ref):      9(ptr) Variable Function
49              17:     16(ptr) AccessChain 13(pc) 15
50              18:      6(ptr) Load 17
51                              Store 10(ref) 18
52              19:      6(ptr) Load 10(ref)
53              22:     21(ptr) AccessChain 19 15
54                              Store 22 20 Aligned MakePointerAvailableKHR NonPrivatePointerKHR 16 23
55                              Return
56                              FunctionEnd