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