mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/fx: Set structure field offsets in bytes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
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
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user