fixing valgrind issues, injecting garbage collector inside vulkan's funtions

This commit is contained in:
Kbz-8
2024-12-13 02:51:52 +01:00
parent 5a04ad7781
commit 5d4d97e05d
8 changed files with 165 additions and 160 deletions

View File

@@ -67,10 +67,14 @@
#include <math.h> // sincos
#endif
#include <Core/Memory.h>
#define VMA_STATIC_VULKAN_FUNCTIONS 0
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 0
#define VMA_VULKAN_VERSION 1000000
#define VMA_ASSERT(expr) ((void)0) // Because why not
#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (mlx::MemManager::AlignedMalloc(alignment, size))
#define VMA_SYSTEM_ALIGNED_FREE(ptr) (mlx::MemManager::Free(ptr))
#define VMA_ASSERT_LEAK(expr) ((void)0) // Because why not
#ifdef MLX_COMPILER_CLANG
#pragma clang diagnostic push