spv.bufferhandle16.frag 660 B

123456789101112131415161718192021222324252627
  1. #version 450
  2. #extension GL_EXT_shader_explicit_arithmetic_types_int64 : enable
  3. #extension GL_EXT_buffer_reference : enable
  4. #extension GL_EXT_scalar_block_layout : enable
  5. layout(buffer_reference) buffer T1 {
  6. int x;
  7. bool y;
  8. };
  9. layout(buffer_reference) buffer T2 {
  10. int x;
  11. };
  12. const int s = int(uint64_t(T1(T2(uint64_t(3)))));
  13. int x[s];
  14. const uint64_t t = uint64_t(true ? T2(uint64_t(10)) : T2(uint64_t(11)));
  15. void main()
  16. {
  17. T1 a = T1(uint64_t(4)), b = T1(uint64_t(5));
  18. T1 c = true ? a : b;
  19. T1 d = (a,b);
  20. T1 e = true ? T1(uint64_t(6)) : T1(uint64_t(7));
  21. T1 f = a.y ? T1(uint64_t(8)) : T1(uint64_t(9));
  22. }