From 7a1d36ba0595bd8cbe2e94eafa1a0a7b2dfa25cb Mon Sep 17 00:00:00 2001 From: Feifan He Date: Sun, 20 Oct 2024 21:01:05 +0800 Subject: [PATCH] vkd3d-shader/msl: Use pointers for constant buffer descriptors. [[id]] attributes can not be applied to union references. --- libs/vkd3d-shader/msl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/msl.c b/libs/vkd3d-shader/msl.c index 034ac3c3..196235b4 100644 --- a/libs/vkd3d-shader/msl.c +++ b/libs/vkd3d-shader/msl.c @@ -426,7 +426,7 @@ static void msl_generate_cbv_declaration(struct msl_generator *gen, size /= VKD3D_VEC4_SIZE * sizeof(uint32_t); vkd3d_string_buffer_printf(buffer, - "constant vkd3d_vec4 (&cb_%u)[%zu] [[id(%u)]];", cbv->register_id, size, binding->binding); + "constant vkd3d_vec4 *cb_%u [[id(%u)]];", cbv->register_id, binding->binding); }; static void msl_generate_descriptor_struct_declarations(struct msl_generator *gen)