yum-mirror/glslang

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

natgavrilenkoFix memory semantics validation rules according to the spec (#4008)579d34d5

main
2.9 KiB59 linesraw
1spv.imageAtomic64.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 29
5
6                              Capability Shader
7                              Capability Int64
8                              Capability Int64Atomics
9                              Capability Int64ImageEXT
10                              Extension  "SPV_EXT_shader_image_int64"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint GLCompute 4  "main"
14                              ExecutionMode 4 LocalSize 1 1 1
15                              Source GLSL 450
16                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types_int64"
17                              SourceExtension  "GL_EXT_shader_image_int64"
18                              SourceExtension  "GL_KHR_memory_scope_semantics"
19                              Name 4  "main"
20                              Name 9  "z"
21                              Name 14  "ssbo"
22                              MemberName 14(ssbo) 0  "y"
23                              Name 16  ""
24                              Decorate 9(z) Binding 1
25                              Decorate 9(z) DescriptorSet 0
26                              Decorate 14(ssbo) BufferBlock
27                              MemberDecorate 14(ssbo) 0 Offset 0
28                              Decorate 16 Binding 0
29                              Decorate 16 DescriptorSet 0
30               2:             TypeVoid
31               3:             TypeFunction 2
32               6:             TypeInt 64 0
33               7:             TypeImage 6(int64_t) 2D nonsampled format:R64ui
34               8:             TypePointer UniformConstant 7
35            9(z):      8(ptr) Variable UniformConstant
36              10:             TypeInt 32 1
37              11:             TypeVector 10(int) 2
38              12:     10(int) Constant 1
39              13:   11(ivec2) ConstantComposite 12 12
40        14(ssbo):             TypeStruct 6(int64_t)
41              15:             TypePointer Uniform 14(ssbo)
42              16:     15(ptr) Variable Uniform
43              17:     10(int) Constant 0
44              18:             TypePointer Uniform 6(int64_t)
45              21:     10(int) Constant 2048
46              22:     10(int) Constant 4
47              23:             TypeInt 32 0
48              24:     23(int) Constant 0
49              25:             TypePointer Image 6(int64_t)
50              27:     23(int) Constant 1
51              28:     23(int) Constant 2052
52         4(main):           2 Function None 3
53               5:             Label
54              19:     18(ptr) AccessChain 16 17
55              20:  6(int64_t) Load 19
56              26:     25(ptr) ImageTexelPointer 9(z) 13 24
57                              AtomicStore 26 12 28 20
58                              Return
59                              FunctionEnd