1#version 450 2#extension GL_ARB_fragment_shader_interlock : enable 3 4layout(set = 0, binding = 0) coherent buffer B1 { 5 layout(offset = 0) int x; 6} b1; 7 8layout(set = 0, binding = 1, rgba32f) coherent uniform image2D im; 9 10layout(sample_interlock_ordered) in; 11 12void main() { 13 14 beginInvocationInterlockARB(); 15 16 b1.x = 1; 17 imageStore(im, ivec2(0,0), vec4(0)); 18 19 endInvocationInterlockARB(); 20} 21