yum-mirror/glslang

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

rjenningsFix some edge cases with vk memory model and memory qualifiers37b5bd72

main
3.7 KiB72 linesraw
1spv.promote_uint32_indices.comp
2// Module Version 10600
3// Generated by (magic number): 8000b
4// Id's are bound by 37
5
6                              Capability Shader
7                              Capability Int64
8                              Capability VulkanMemoryModelKHR
9                              Capability PhysicalStorageBufferAddressesEXT
10               1:             ExtInstImport  "GLSL.std.450"
11                              MemoryModel PhysicalStorageBuffer64EXT VulkanKHR
12                              EntryPoint GLCompute 4  "main" 16
13                              ExecutionMode 4 LocalSize 64 1 1
14                              Source GLSL 450
15                              SourceExtension  "GL_EXT_buffer_reference"
16                              SourceExtension  "GL_EXT_shader_64bit_indexing"
17                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
18                              SourceExtension  "GL_KHR_cooperative_matrix"
19                              SourceExtension  "GL_KHR_memory_scope_semantics"
20                              SourceExtension  "GL_NV_cooperative_vector"
21                              Name 4  "main"
22                              Name 8  "element"
23                              Name 12  "y"
24                              Name 14  "Block"
25                              MemberName 14(Block) 0  "x"
26                              Name 16  "block"
27                              Decorate 13 ArrayStride 4
28                              Decorate 14(Block) Block
29                              MemberDecorate 14(Block) 0 Offset 0
30                              Decorate 16(block) Binding 0
31                              Decorate 16(block) DescriptorSet 0
32               2:             TypeVoid
33               3:             TypeFunction 2
34               6:             TypeInt 32 0
35               7:             TypePointer Function 6(int)
36               9:      6(int) Constant 3000000000
37              10:             TypeFloat 32
38              11:             TypePointer Function 10(float)
39              13:             TypeRuntimeArray 10(float)
40       14(Block):             TypeStruct 13
41              15:             TypePointer StorageBuffer 14(Block)
42       16(block):     15(ptr) Variable StorageBuffer
43              17:             TypeInt 32 1
44              18:     17(int) Constant 0
45              20:             TypeInt 64 1
46              21:             TypeInt 64 0
47              23:             TypePointer StorageBuffer 10(float)
48              26:      6(int) Constant 5
49              27: 20(int64_t) Constant 4000000000 0
50              30: 20(int64_t) Constant 705032704 1
51              33:             TypeVector 6(int) 3
52              34:      6(int) Constant 64
53              35:      6(int) Constant 1
54              36:   33(ivec3) ConstantComposite 34 35 35
55         4(main):           2 Function None 3
56               5:             Label
57      8(element):      7(ptr) Variable Function
58           12(y):     11(ptr) Variable Function
59                              Store 8(element) 9
60              19:      6(int) Load 8(element)
61              22: 21(int64_t) UConvert 19
62              24:     23(ptr) AccessChain 16(block) 18 22
63              25:   10(float) Load 24 MakePointerVisibleKHR NonPrivatePointerKHR 26
64                              Store 12(y) 25
65              28:     23(ptr) AccessChain 16(block) 18 27
66              29:   10(float) Load 28 MakePointerVisibleKHR NonPrivatePointerKHR 26
67                              Store 12(y) 29
68              31:     23(ptr) AccessChain 16(block) 18 30
69              32:   10(float) Load 31 MakePointerVisibleKHR NonPrivatePointerKHR 26
70                              Store 12(y) 32
71                              Return
72                              FunctionEnd