HLSL: Smear scalars to match vectors for relational operations.
Yield a vector relational compare and a vector result.
This commit is contained in:
parent
267590d452
commit
4583b61e20
6 changed files with 168 additions and 22 deletions
|
|
@ -8,6 +8,15 @@ float4 PixelShaderFunction(float4 input, float f) : COLOR0
|
|||
u = float(1);
|
||||
u = float(2.0);
|
||||
u = float(f);
|
||||
float2 w = 2.0;
|
||||
float V = 1;
|
||||
float3 MyVal = V;
|
||||
|
||||
float3 foo;
|
||||
foo > 4.0;
|
||||
foo >= 5.0;
|
||||
6.0 < foo;
|
||||
7.0 <= foo;
|
||||
|
||||
return input;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue