1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//TEST:COMPARE_HLSL:-no-mangle -use-ir -profile ps_4_0 -entry main // Ensure that matrix-times-scalar works float4x4 doIt(float4x4 a, float b) { return a * b; } cbuffer C { float4x4 a; float b; }; float4 main() : SV_Target { return doIt(a, b)[0]; }