From 2767469137958e27a17fbd5fa641e51be9542421 Mon Sep 17 00:00:00 2001 From: niansa/tuxifan Date: Mon, 9 Sep 2024 15:27:03 +0200 Subject: [PATCH 1/2] Add missing vk buffer static casts to Buffer.cpp --- src/vulkan/Buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/Buffer.cpp b/src/vulkan/Buffer.cpp index 5228aa1..a55ada8 100644 --- a/src/vulkan/Buffer.cpp +++ b/src/vulkan/Buffer.cpp @@ -116,12 +116,12 @@ void Buffer::downloadTo(std::shared_ptr buffer, vk::DeviceSize srcOffset } Buffer::~Buffer() { - vmaDestroyBuffer(context->allocator, buffer, allocation); + vmaDestroyBuffer(context->allocator, static_cast(buffer), allocation); spdlog::debug("Buffer destroyed"); } void Buffer::realloc(uint64_t newSize) { - vmaDestroyBuffer(context->allocator, buffer, allocation); + vmaDestroyBuffer(context->allocator, static_cast(buffer), allocation); size = newSize; alloc(); From 16b012782578f9102bf7eedda1cc9ba92fc9eafd Mon Sep 17 00:00:00 2001 From: niansa/tuxifan Date: Mon, 9 Sep 2024 15:28:21 +0200 Subject: [PATCH 2/2] Add missing vk buffer static casts to ImguiManager.cpp --- src/vulkan/ImguiManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/ImguiManager.cpp b/src/vulkan/ImguiManager.cpp index 76b0f01..7328daf 100644 --- a/src/vulkan/ImguiManager.cpp +++ b/src/vulkan/ImguiManager.cpp @@ -127,7 +127,7 @@ void ImguiManager::init() { init_info.Device = context->device.get(); init_info.QueueFamily = context->queues[VulkanContext::Queue::GRAPHICS].queueFamily; init_info.Queue = context->queues[VulkanContext::Queue::GRAPHICS].queue; - init_info.DescriptorPool = descriptorPool.get(); + init_info.DescriptorPool = static_cast(descriptorPool.get()); init_info.MinImageCount = 2; init_info.ImageCount = swapchain->imageCount + 1; init_info.UseDynamicRendering = true;