vkd3d-shader/hlsl: Lower casts to bool to comparisons.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani
2022-04-06 21:24:42 +02:00
committed by Alexandre Julliard
parent 8fa196cf51
commit 8c086b5c91
3 changed files with 36 additions and 8 deletions

View File

@@ -1542,7 +1542,8 @@ static void write_sm4_cast(struct hlsl_ctx *ctx,
break;
case HLSL_TYPE_BOOL:
hlsl_fixme(ctx, &expr->node.loc, "SM4 cast to bool.");
/* Casts to bool should have already been lowered. */
assert(0);
break;
default: