lib_mat_entry2.hlsl 591 B

1234567891011121314151617181920
  1. // RUN: %dxc -T lib_6_3 %s | FileCheck %s
  2. // CHECK: [[BCI:%.*]] = bitcast <12 x float>* {{.*}} to %class.matrix.float.4.3*
  3. // CHECK:call <3 x float> @"\01?mat_test@@YA?AV?$vector@M$02@@V?$vector@M$03@@0AIAV?$matrix@M$03$02@@@Z"(<4 x float> {{.*}}, <4 x float> {{.*}}, %class.matrix.float.4.3* {{.*}}[[BCI]])
  4. float3 mat_test(in float4 in0,
  5. in float4 in1,
  6. inout float4x3 m);
  7. cbuffer A {
  8. float4 g0;
  9. float4 g1;
  10. float4x3 M;
  11. };
  12. [shader("pixel")]
  13. float3 main() : SV_Target {
  14. float4x3 m = M;
  15. return mat_test( g0, g1, m);
  16. }