summaryrefslogtreecommitdiffstats
path: root/tests/bugs/implicit-conversion-binary-op.hlsl
blob: 75ff737daac123d968a9fc645723615bc3701fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// implicit-conversion-binary-op.hlsl
//TEST:COMPARE_HLSL: -profile ps_5_0 -target dxbc-assembly

// Make sure that we can pick resolve the right overload
// to call when applying a binary operator to vectors
// with different element types. We should pick
// the "better" of the two element types, and not
// get an ambiguity error.

float4 main(
	float4 	a : A,
	uint4	b : B
	) : SV_Target
{
	return a * b;
}