vkd3d-shader/msl: Use pointers for constant buffer descriptors.

[[id]] attributes can not be applied to union references.
This commit is contained in:
Feifan He 2024-10-20 21:01:05 +08:00 committed by Henri Verbeet
parent b29f1e6cdc
commit 7a1d36ba05
Notes: Henri Verbeet 2024-11-20 15:00:07 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1243

View File

@ -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)