mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 10:41:52 +00:00
Fix alignment of VmaPoolAllocator::Item::Value
Disable Visual Studio warning C4324. See #71
This commit is contained in:
parent
c7e5f2e44a
commit
5afe7845a1
@ -60,6 +60,7 @@ include all public interface declarations. Example:
|
||||
#pragma warning(disable: 4127) // conditional expression is constant
|
||||
#pragma warning(disable: 4100) // unreferenced formal parameter
|
||||
#pragma warning(disable: 4189) // local variable is initialized but not referenced
|
||||
#pragma warning(disable: 4324) // structure was padded due to alignment specifier
|
||||
|
||||
#include "vk_mem_alloc.h"
|
||||
|
||||
|
@ -4344,7 +4344,7 @@ private:
|
||||
union Item
|
||||
{
|
||||
uint32_t NextFreeIndex;
|
||||
char Value[sizeof(T)];
|
||||
alignas(T) char Value[sizeof(T)];
|
||||
};
|
||||
|
||||
struct ItemBlock
|
||||
|
Loading…
Reference in New Issue
Block a user