vkd3d: Replace assert() with VKD3D_ASSERT() in vkd3d_private.h.

This commit is contained in:
Giovanni Mascellani 2024-07-29 14:43:07 +02:00 committed by Henri Verbeet
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

View File

@ -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( static inline enum vkd3d_vk_descriptor_set_index vkd3d_vk_descriptor_set_index_from_vk_descriptor_type(
VkDescriptorType type) VkDescriptorType type)
{ {
assert(type <= VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER); VKD3D_ASSERT(type <= VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
assert(vk_descriptor_set_index_table[type] < VKD3D_SET_INDEX_COUNT); VKD3D_ASSERT(vk_descriptor_set_index_table[type] < VKD3D_SET_INDEX_COUNT);
return vk_descriptor_set_index_table[type]; return vk_descriptor_set_index_table[type];
} }
@ -1768,7 +1768,7 @@ static inline void vkd3d_prepend_struct(void *header, void *structure)
const void *next; const void *next;
} *vkd3d_header = header, *vkd3d_structure = structure; } *vkd3d_header = header, *vkd3d_structure = structure;
assert(!vkd3d_structure->next); VKD3D_ASSERT(!vkd3d_structure->next);
vkd3d_structure->next = vkd3d_header->next; vkd3d_structure->next = vkd3d_header->next;
vkd3d_header->next = vkd3d_structure; vkd3d_header->next = vkd3d_structure;
} }