From ee2da76e6d09daf129335e2838444115b470e244 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sat, 31 Aug 2024 00:45:36 +0200 Subject: [PATCH] vkd3d-shader/fx: Set structure field offsets in bytes. Signed-off-by: Nikolay Sivov --- libs/vkd3d-shader/fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index a1d1fd65..68de259f 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -613,7 +613,7 @@ static uint32_t write_fx_4_type(const struct hlsl_type *type, struct fx_write_co field_offsets[i].name = write_string(field->name, fx); field_offsets[i].semantic = write_string(field->semantic.raw_name, fx); - field_offsets[i].offset = field->reg_offset[HLSL_REGSET_NUMERIC]; + field_offsets[i].offset = field->reg_offset[HLSL_REGSET_NUMERIC] * sizeof(float); field_offsets[i].type = write_type(field->type, fx); } }