mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Return an "error" expression when constructing an arithmetic expression from incompatible types.
This commit is contained in:
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
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user