mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Add a helper to check for a numeric type.
This commit is contained in:
committed by
Alexandre Julliard
parent
76eb0adf03
commit
88caf87789
Notes:
Alexandre Julliard
2023-11-15 22:59:15 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/472
@@ -5411,7 +5411,7 @@ static void write_sm4_load(const struct tpf_writer *tpf, const struct hlsl_ir_lo
|
||||
sm4_dst_from_node(&instr.dsts[0], &load->node);
|
||||
instr.dst_count = 1;
|
||||
|
||||
assert(type->class <= HLSL_CLASS_LAST_NUMERIC);
|
||||
assert(hlsl_is_numeric_type(type));
|
||||
if (type->base_type == HLSL_TYPE_BOOL && var_is_user_input(tpf->ctx, load->src.var))
|
||||
{
|
||||
struct hlsl_constant_value value;
|
||||
|
||||
Reference in New Issue
Block a user