yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Tim FoleyRework command-line options handling for entry points and targets (#697)725985528

master
389 B16 linesraw
1// implicit-conversion-binary-op.hlsl
2//TEST:COMPARE_HLSL: -profile ps_5_0
3
4// Make sure that we can pick resolve the right overload
5// to call when applying a binary operator to vectors
6// with different element types. We should pick
7// the "better" of the two element types, and not
8// get an ambiguity error.
9
10float4 main(
11	float4 	a : A,
12	uint4	b : B
13	) : SV_TARGET
14{
15	return a * b;
16}