HLSL: Support 1.#INF and -1.#INF syntax.

This commit is contained in:
John Kessenich
2017-04-12 13:26:57 -06:00
parent b5e739c20e
commit 776c515ea5
8 changed files with 256 additions and 16 deletions

11
Test/hlsl.inf.vert Executable file
View 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);
}