Nikolay Sivov : vkd3d-shader/fx: Handle 'single' modifier for buffers.
Module: vkd3d Branch: master Commit: 948cd2154ae858e4b33c552424fe97519ee6b6b9 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/948cd2154ae858e4b33c552424fe97... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Mar 10 20:01:22 2024 +0100 vkd3d-shader/fx: Handle 'single' modifier for buffers. Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> --- libs/vkd3d-shader/fx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index aaba6c28..fdf132e9 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -799,7 +799,8 @@ static void write_fx_4_buffer(struct hlsl_buffer *b, struct fx_write_context *fx bind_point = b->reservation.reg_index; if (b->type == HLSL_BUFFER_TEXTURE) flags |= IS_TBUFFER; - /* FIXME: set 'single' flag for fx_5_0 */ + if (ctx->profile->major_version == 5 && b->modifiers & HLSL_MODIFIER_SINGLE) + flags |= IS_SINGLE; name_offset = write_string(b->name, fx);
participants (1)
-
Alexandre Julliard