HLSL: Support 1.#INF and -1.#INF syntax.
This commit is contained in:
11
Test/hlsl.inf.vert
Executable file
11
Test/hlsl.inf.vert
Executable file
@@ -0,0 +1,11 @@
|
||||
float4 main() : SV_Position
|
||||
{
|
||||
float f1 = -1.#INF;
|
||||
float f2 = 1.#INF;
|
||||
float f3 = +1.#INF;
|
||||
float f4 = f2 * 1.#INF + 1.#INF;
|
||||
const float f5 = -1.#INF;
|
||||
const float f6 = f5 * 0.0f;
|
||||
|
||||
return (float4)(f1 + f2 + f3 + f4 + f5 + f6);
|
||||
}
|
||||
Reference in New Issue
Block a user