array-dimension.azsl 200 B

12345678910
  1. void psmain(): SV_target0
  2. {
  3. static const int dim = 3 + 5; // even though azslc is not capable to fold this constant, dxc can.
  4. int array[dim][dim]; // valid
  5. }
  6. struct S
  7. {
  8. int arr[var];
  9. };