2023-06-15 05:09:04 +02:00
|
|
|
/* SPDX-FileCopyrightText: 2022 Blender Foundation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2022-11-23 14:42:11 +01:00
|
|
|
|
2023-08-10 11:27:44 +02:00
|
|
|
#include <cstdio>
|
|
|
|
|
2022-11-23 14:42:11 +01:00
|
|
|
#ifdef __APPLE__
|
|
|
|
# include <MoltenVK/vk_mvk_moltenvk.h>
|
|
|
|
#else
|
|
|
|
# include <vulkan/vulkan.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define VMA_IMPLEMENTATION
|
|
|
|
|
2023-05-30 13:50:35 +02:00
|
|
|
/*
|
|
|
|
* Disabling internal asserts of VMA.
|
|
|
|
*
|
|
|
|
* Blender can destroy logical device before all the resources are freed. This is because static
|
|
|
|
* resources are freed as a last step during quiting. As long as Vulkan isn't feature complete
|
|
|
|
* we don't want to change this behavior. So for now we just disable the asserts.
|
|
|
|
*/
|
|
|
|
#define VMA_ASSERT(test)
|
2023-08-10 09:45:38 +02:00
|
|
|
|
2022-11-23 14:42:11 +01:00
|
|
|
#include "vk_mem_alloc.h"
|