mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Replace assert() with VKD3D_ASSERT() in vkd3d_private.h.
This commit is contained in:
parent
529647142c
commit
240d31c793
Notes:
Henri Verbeet
2024-07-29 19:19:22 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/967
@ -787,8 +787,8 @@ extern const enum vkd3d_vk_descriptor_set_index vk_descriptor_set_index_table[];
|
||||
static inline enum vkd3d_vk_descriptor_set_index vkd3d_vk_descriptor_set_index_from_vk_descriptor_type(
|
||||
VkDescriptorType type)
|
||||
{
|
||||
assert(type <= VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
|
||||
assert(vk_descriptor_set_index_table[type] < VKD3D_SET_INDEX_COUNT);
|
||||
VKD3D_ASSERT(type <= VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
|
||||
VKD3D_ASSERT(vk_descriptor_set_index_table[type] < VKD3D_SET_INDEX_COUNT);
|
||||
|
||||
return vk_descriptor_set_index_table[type];
|
||||
}
|
||||
@ -1768,7 +1768,7 @@ static inline void vkd3d_prepend_struct(void *header, void *structure)
|
||||
const void *next;
|
||||
} *vkd3d_header = header, *vkd3d_structure = structure;
|
||||
|
||||
assert(!vkd3d_structure->next);
|
||||
VKD3D_ASSERT(!vkd3d_structure->next);
|
||||
vkd3d_structure->next = vkd3d_header->next;
|
||||
vkd3d_header->next = vkd3d_structure;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user