vkd3d-shader/fx: Set structure field offsets in bytes.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-08-31 00:45:36 +02:00 committed by Henri Verbeet
parent 7a74e79f2d
commit ee2da76e6d
Notes: Henri Verbeet 2024-09-04 11:48:06 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1030

View File

@ -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].name = write_string(field->name, fx);
field_offsets[i].semantic = write_string(field->semantic.raw_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); field_offsets[i].type = write_type(field->type, fx);
} }
} }