mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-11 06:40:39 +00:00
Use atomic_t<> in VKMemAlloc
This commit is contained in:
parent
65c04e4ddd
commit
72284b4530
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user