Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git] / Test / spv.imageAtomic64.comp
1 #version 450
2 #extension GL_EXT_shader_explicit_arithmetic_types_int64 : enable
3 #extension GL_EXT_shader_image_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, r64ui) uniform u64image2D z;
8
9 void main() {
10     // Test imageAtomicStore exclusively. Do NOT add other atomic operations to this test.
11     imageAtomicStore(z, ivec2(1, 1), y, gl_ScopeDevice, gl_StorageSemanticsImage, gl_SemanticsRelaxed);
12 }