spv.fsi.frag 423 B

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