mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Write dimension for constant buffer registers.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3522d0f3a7
commit
eeeb9a5c2a
@ -613,6 +613,7 @@ static void sm4_register_from_deref(struct hlsl_ctx *ctx, struct sm4_register *r
|
||||
if (var->is_uniform)
|
||||
{
|
||||
reg->type = VKD3D_SM4_RT_CONSTBUFFER;
|
||||
reg->dim = VKD3D_SM4_DIMENSION_VEC4;
|
||||
reg->idx[0] = var->buffer->reg.id;
|
||||
reg->idx[1] = var->buffer_offset / 4;
|
||||
reg->idx_count = 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user