summaryrefslogtreecommitdiff
path: root/tests/bugs/gh-103.slang
blob: 4e9765fb345dd66847ca8262fb2a4a6c54af2cf8 (plain)
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];
}