vkd3d: Ensure descriptors are pointer aligned.

The descriptor structure contains pointer and size types.
This commit is contained in:
Conor McCarthy 2023-04-13 00:44:00 +10:00 committed by Alexandre Julliard
parent b46df551eb
commit 505c8c5a2f
Notes: Alexandre Julliard 2023-04-25 22:39:27 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/156

View File

@ -866,7 +866,7 @@ struct d3d12_descriptor_heap
struct d3d12_descriptor_heap_vk_set vk_descriptor_sets[VKD3D_SET_INDEX_COUNT];
struct vkd3d_mutex vk_sets_mutex;
BYTE descriptors[];
uint8_t DECLSPEC_ALIGN(sizeof(void *)) descriptors[];
};
static inline struct d3d12_descriptor_heap *d3d12_desc_get_descriptor_heap(const struct d3d12_desc *descriptor)