parent
9d6bfd4786
commit
252ad711f1
|
@ -63,7 +63,9 @@ public:
|
||||||
if (allocInfo.pMappedData != nullptr)
|
if (allocInfo.pMappedData != nullptr)
|
||||||
return allocInfo.pMappedData;
|
return allocInfo.pMappedData;
|
||||||
void *p;
|
void *p;
|
||||||
vmaMapMemory(allocator, allocation, &p);
|
VkResult res = vmaMapMemory(allocator, allocation, &p);
|
||||||
|
if (res != VK_SUCCESS)
|
||||||
|
vk::throwResultException((vk::Result)res, "vmaMapMemory failed");
|
||||||
VkMemoryPropertyFlags flags;
|
VkMemoryPropertyFlags flags;
|
||||||
vmaGetMemoryTypeProperties(allocator, allocInfo.memoryType, &flags);
|
vmaGetMemoryTypeProperties(allocator, allocInfo.memoryType, &flags);
|
||||||
if ((flags & VK_MEMORY_PROPERTY_HOST_CACHED_BIT) && (flags & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0)
|
if ((flags & VK_MEMORY_PROPERTY_HOST_CACHED_BIT) && (flags & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0)
|
||||||
|
|
Loading…
Reference in New Issue