Use atomic_t<> in VKMemAlloc

This commit is contained in:
Nekotekina 2020-12-10 18:44:17 +03:00
parent 65c04e4ddd
commit 72284b4530
2 changed files with 15 additions and 0 deletions

View File

@ -22,8 +22,16 @@
#include "../display.h"
#include "../rsx_utils.h"
#define VMA_ATOMIC_UINT32 atomic_t<u32>
#define VMA_ATOMIC_UINT64 atomic_t<u64>
#define compare_exchange_strong compare_exchange
#define compare_exchange_weak compare_exchange
#include "3rdparty/GPUOpen/include/vk_mem_alloc.h"
#undef compare_exchange_strong
#undef compare_exchange_weak
#ifdef __APPLE__
#define VK_DISABLE_COMPONENT_SWIZZLE 1
#else

View File

@ -1,5 +1,12 @@
#define VMA_IMPLEMENTATION
#include "util/atomic.hpp"
#define VMA_ATOMIC_UINT32 atomic_t<u32>
#define VMA_ATOMIC_UINT64 atomic_t<u64>
#define compare_exchange_strong compare_exchange
#define compare_exchange_weak compare_exchange
#ifdef _MSC_VER
#pragma warning(push, 0)
#else