lib_mat_array.hlsl 444 B

123456789101112131415161718
  1. // RUN: %dxc -T lib_6_3 -auto-binding-space 11 -default-linkage external -Zpr %s | FileCheck %s
  2. // check that matrix lowering succeeds
  3. // CHECK-NOT: Fail to lower matrix load/store.
  4. // make sure no transpose is present
  5. // CHECK-NOT: shufflevector
  6. // Check that compile succeeds
  7. // CHECK: ret %class.matrix.float.3.4
  8. struct Foo {
  9. float3x4 mat_array[2];
  10. int i;
  11. };
  12. float3x4 lookup(Foo f, inout float3x4 mat) {
  13. return f.mat_array[f.i];
  14. }