mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/dxil: Load typed SRV descriptors.
This commit is contained in:
committed by
Alexandre Julliard
parent
5ebe0cc717
commit
89d1ef83f4
Notes:
Alexandre Julliard
2024-01-22 22:52: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/533
@@ -1197,6 +1197,12 @@ static inline bool register_is_constant(const struct vkd3d_shader_register *reg)
|
||||
return (reg->type == VKD3DSPR_IMMCONST || reg->type == VKD3DSPR_IMMCONST64);
|
||||
}
|
||||
|
||||
static inline bool register_is_scalar_constant_zero(const struct vkd3d_shader_register *reg)
|
||||
{
|
||||
return register_is_constant(reg) && reg->dimension == VSIR_DIMENSION_SCALAR
|
||||
&& (data_type_is_64_bit(reg->data_type) ? !reg->u.immconst_u64[0] : !reg->u.immconst_u32[0]);
|
||||
}
|
||||
|
||||
static inline bool vsir_register_is_label(const struct vkd3d_shader_register *reg)
|
||||
{
|
||||
return reg->type == VKD3DSPR_LABEL;
|
||||
|
Reference in New Issue
Block a user