HLSL: Fix #770: implicitly convert bool operands to numeric operators.

This commit is contained in:
John Kessenich
2017-04-12 22:37:32 -06:00
parent a4c64c988c
commit 97366a0df0
5 changed files with 425 additions and 2 deletions

20
Test/hlsl.boolConv.vert Executable file
View File

@@ -0,0 +1,20 @@
static bool a, b = true;
float4 main() : SV_Position
{
int r = 0;
r += a + b;
r += a - b;
r += a * b;
r += a / b;
r += a % b;
r += a & b;
r += a | b;
r += a ^ b;
r += a << b;
r += a >> b;
return r;
}