Fix 32bits build

This commit is contained in:
Patrick Nicolas
2024-11-30 13:02:24 +01:00
parent bab3a23953
commit 9eacb3b881
5 changed files with 17 additions and 17 deletions
+6 -6
View File
@@ -25,7 +25,7 @@
#include <utility>
#include <vk_mem_alloc.h>
std::pair<vk::raii::Buffer, VmaAllocation> basic_allocation_traits<VkBuffer>::create(
std::pair<vk::raii::Buffer, VmaAllocation> basic_allocation_traits<vk::Buffer>::create(
vk::raii::Device & device,
const CreateInfo & buffer_info,
const VmaAllocationCreateInfo & alloc_info)
@@ -40,7 +40,7 @@ std::pair<vk::raii::Buffer, VmaAllocation> basic_allocation_traits<VkBuffer>::cr
return std::pair<vk::raii::Buffer, VmaAllocation>{vk::raii::Buffer{device, tmp}, allocation};
}
void basic_allocation_traits<VkBuffer>::destroy(
void basic_allocation_traits<vk::Buffer>::destroy(
vk::raii::Buffer & buffer,
VmaAllocation allocation,
void * mapped)
@@ -50,7 +50,7 @@ void basic_allocation_traits<VkBuffer>::destroy(
if (mapped)
vmaUnmapMemory(allocator, allocation);
vmaDestroyBuffer(allocator, buffer.release(), allocation);
vmaDestroyBuffer(allocator, VkBuffer(buffer.release()), allocation);
}
void * basic_allocation_traits_base::map(VmaAllocation allocation)
@@ -69,7 +69,7 @@ void basic_allocation_traits_base::unmap(VmaAllocation allocation)
vmaUnmapMemory(allocator, allocation);
}
std::pair<vk::raii::Image, VmaAllocation> basic_allocation_traits<VkImage>::create(
std::pair<vk::raii::Image, VmaAllocation> basic_allocation_traits<vk::Image>::create(
vk::raii::Device & device,
const CreateInfo & image_info,
const VmaAllocationCreateInfo & alloc_info)
@@ -84,7 +84,7 @@ std::pair<vk::raii::Image, VmaAllocation> basic_allocation_traits<VkImage>::crea
return std::pair<vk::raii::Image, VmaAllocation>{vk::raii::Image{device, tmp}, allocation};
}
void basic_allocation_traits<VkImage>::destroy(
void basic_allocation_traits<vk::Image>::destroy(
vk::raii::Image & image,
VmaAllocation allocation,
void * mapped)
@@ -94,5 +94,5 @@ void basic_allocation_traits<VkImage>::destroy(
if (mapped)
vmaUnmapMemory(allocator, allocation);
vmaDestroyImage(allocator, image.release(), allocation);
vmaDestroyImage(allocator, VkImage(image.release()), allocation);
}