[Oops] Fix rebase error
All checks were successful
eden-license / license-header (pull_request) Successful in 24s

This commit is contained in:
bix 2025-09-04 21:59:49 +01:00
parent 2dce08dd81
commit 67119c884a

View file

@ -239,7 +239,10 @@ namespace Vulkan {
VmaAllocation allocation{}; VmaAllocation allocation{};
VkMemoryPropertyFlags property_flags{}; VkMemoryPropertyFlags property_flags{};
vk::Check(vmaCreateBuffer(allocator, &ci, &alloc_ci, &handle, &allocation, &alloc_info)); VkResult result = vmaCreateBuffer(allocator, &ci, &alloc_ci, &handle, &allocation, &alloc_info);
if (result == VK_ERROR_OUT_OF_DEVICE_MEMORY) {
LOG_ERROR(Render_Vulkan, "Out of memory creating buffer (size: {})", ci.size);
}
vmaGetAllocationMemoryProperties(allocator, allocation, &property_flags); vmaGetAllocationMemoryProperties(allocator, allocation, &property_flags);
u8 *data = reinterpret_cast<u8 *>(alloc_info.pMappedData); u8 *data = reinterpret_cast<u8 *>(alloc_info.pMappedData);