HLSL: Non-functional: add vector ? : tests.

This commit is contained in:
John Kessenich
2017-04-11 17:30:08 -06:00
parent 13075c612c
commit 34718204e1
3 changed files with 425 additions and 362 deletions

View File

@@ -1,3 +1,15 @@
float4 c4;
float4 t4;
float4 f4;
float t;
float f;
float4 vectorCond()
{
return f4; // return (c4 ? t4 : f4) +
// (c4 ? t : f );
}
float4 PixelShaderFunction(float4 input) : COLOR0
{
int a = 1 < 2 ? 3 < 4 ? 5 : 6 : 7;
@@ -12,5 +24,5 @@ float4 PixelShaderFunction(float4 input) : COLOR0
e = a = b ? c = d : 10, b = a ? d = c : 11;
float4 f;
f = ret.x < input.y ? c * input : d * input;
return e * ret + f;
return e * ret + f + vectorCond();
}