Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / spv.atomicStoreInt64.comp
1 #version 450
2 #extension GL_EXT_shader_explicit_arithmetic_types_int64 : enable
3 #extension GL_EXT_shader_atomic_int64 : enable
4 #extension GL_KHR_memory_scope_semantics : enable
5
6 layout(set = 0, binding = 0) buffer ssbo { uint64_t y; };
7 layout(set = 0, binding = 1) uniform ubo { uint64_t z; };
8
9 void main() {
10     atomicStore(y, z, gl_ScopeDevice, gl_StorageSemanticsBuffer, gl_SemanticsRelaxed);
11 }