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