HLSL: Non-functional: add vector ? : tests.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user