mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-shader/fx: Add missing fields for structure types on fx_5_0.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
8738e4662e
commit
0a344bd3c9
Notes:
Henri Verbeet
2024-07-08 18:55:00 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/918
@ -536,6 +536,12 @@ static uint32_t write_fx_4_type(const struct hlsl_type *type, struct fx_write_co
|
||||
put_u32_unaligned(buffer, field->offset);
|
||||
put_u32_unaligned(buffer, field->type);
|
||||
}
|
||||
|
||||
if (ctx->profile->major_version == 5)
|
||||
{
|
||||
put_u32_unaligned(buffer, 0); /* Base class type */
|
||||
put_u32_unaligned(buffer, 0); /* Interface count */
|
||||
}
|
||||
}
|
||||
else if (type->class == HLSL_CLASS_TEXTURE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user