spv.bufferhandle1.frag 582 B

1234567891011121314151617181920212223242526272829
  1. #version 450
  2. #extension GL_EXT_buffer_reference : enable
  3. #pragma use_vulkan_memory_model
  4. layout(buffer_reference, std430) buffer blockType {
  5. layout(offset = 0) int a;
  6. layout(offset = 4) int b;
  7. layout(offset = 8) int c;
  8. layout(offset = 12) int d;
  9. layout(offset = 16) int e;
  10. layout(offset = 32) int f[2];
  11. coherent layout(offset = 48) ivec4 g;
  12. };
  13. layout(std430) buffer t2 {
  14. blockType f;
  15. blockType g;
  16. } t;
  17. void main() {
  18. t.f.b = t.g.a;
  19. blockType j = t.f;
  20. j.d = j.c;
  21. j.d = j.f[1];
  22. j.d = j.g.y;
  23. }