Added
Link Here
|
1 |
--- core/rend/vulkan/vmallocator.h.orig 2024-11-10 23:58:42 UTC |
2 |
+++ core/rend/vulkan/vmallocator.h |
3 |
@@ -64,7 +64,7 @@ class Allocation (public) |
4 |
return allocInfo.pMappedData; |
5 |
void *p; |
6 |
VkResult res = vmaMapMemory(allocator, allocation, &p); |
7 |
- vk::resultCheck(static_cast<vk::Result>(res), "vmaMapMemory failed"); |
8 |
+ vk::detail::resultCheck(static_cast<vk::Result>(res), "vmaMapMemory failed"); |
9 |
VkMemoryPropertyFlags flags; |
10 |
vmaGetMemoryTypeProperties(allocator, allocInfo.memoryType, &flags); |
11 |
if ((flags & VK_MEMORY_PROPERTY_HOST_CACHED_BIT) && (flags & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0) |
12 |
@@ -114,7 +114,7 @@ class VMAllocator (public) |
13 |
VmaAllocation vmaAllocation; |
14 |
VmaAllocationInfo allocInfo; |
15 |
VkResult rc = vmaAllocateMemory(allocator, (VkMemoryRequirements*)&memoryRequirements, &allocCreateInfo, &vmaAllocation, &allocInfo); |
16 |
- vk::resultCheck(static_cast<vk::Result>(rc), "vmaAllocateMemory failed"); |
17 |
+ vk::detail::resultCheck(static_cast<vk::Result>(rc), "vmaAllocateMemory failed"); |
18 |
return Allocation(allocator, vmaAllocation, allocInfo); |
19 |
} |
20 |
|
21 |
@@ -123,7 +123,7 @@ class VMAllocator (public) |
22 |
VmaAllocation vmaAllocation; |
23 |
VmaAllocationInfo allocInfo; |
24 |
VkResult rc = vmaAllocateMemoryForImage(allocator, (VkImage)image, &allocCreateInfo, &vmaAllocation, &allocInfo); |
25 |
- vk::resultCheck(static_cast<vk::Result>(rc), "vmaAllocateMemoryForImage failed"); |
26 |
+ vk::detail::resultCheck(static_cast<vk::Result>(rc), "vmaAllocateMemoryForImage failed"); |
27 |
vmaBindImageMemory(allocator, vmaAllocation, (VkImage)image); |
28 |
|
29 |
return Allocation(allocator, vmaAllocation, allocInfo); |
30 |
@@ -134,7 +134,7 @@ class VMAllocator (public) |
31 |
VmaAllocation vmaAllocation; |
32 |
VmaAllocationInfo allocInfo; |
33 |
VkResult rc = vmaAllocateMemoryForBuffer(allocator, (VkBuffer)buffer, &allocCreateInfo, &vmaAllocation, &allocInfo); |
34 |
- vk::resultCheck(static_cast<vk::Result>(rc), "vmaAllocateMemoryForBuffer failed"); |
35 |
+ vk::detail::resultCheck(static_cast<vk::Result>(rc), "vmaAllocateMemoryForBuffer failed"); |
36 |
vmaBindBufferMemory(allocator, vmaAllocation, (VkBuffer)buffer); |
37 |
|
38 |
return Allocation(allocator, vmaAllocation, allocInfo); |