mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/msl: Use pointers for constant buffer descriptors.
[[id]] attributes can not be applied to union references.
This commit is contained in:
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
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user