Module: vkd3d Branch: master Commit: 0a344bd3c94bfdf25f02d5284f9c37638c2156dd URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/0a344bd3c94bfdf25f02d5284f9c37...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sun Jun 30 23:39:30 2024 +0200
vkd3d-shader/fx: Add missing fields for structure types on fx_5_0.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com
---
libs/vkd3d-shader/fx.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index a467c236..9acb1f79 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -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) {