mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Ensure descriptors are pointer aligned.
The descriptor structure contains pointer and size types.
This commit is contained in:
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
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user