vkd3d-shader/hlsl: Return an "error" expression when constructing an arithmetic expression from incompatible types.

This commit is contained in:
Elizabeth Figura
2024-09-12 21:42:46 -05:00
committed by Henri Verbeet
parent c43e5c8eb5
commit 7e3231c749
Notes: Henri Verbeet 2024-09-23 15:55:59 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1071
3 changed files with 24 additions and 1 deletions

View File

@@ -661,6 +661,7 @@ struct hlsl_ir_switch
enum hlsl_ir_expr_op
{
HLSL_OP0_ERROR,
HLSL_OP0_VOID,
HLSL_OP0_RASTERIZER_SAMPLE_COUNT,
@@ -1050,6 +1051,9 @@ struct hlsl_ctx
struct hlsl_type *error;
} builtin_types;
/* Pre-allocated "error" expression. */
struct hlsl_ir_node *error_instr;
/* List of the instruction nodes for initializing static variables. */
struct hlsl_block static_initializers;