1 From f88fd472e57b59013570f08949dbbc0875c1bae4 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sat, 13 Nov 2021 18:37:13 -0800
4 Subject: [PATCH] framework/core: Add explicit static_cast from vk::Buffer to
8 framework/core/hpp_buffer.cpp:149:3: error: no matching function for call to 'vmaDestroyBuffer'
9 | vmaDestroyBuffer(vmaAllocator, handle, vmaAllocation);
11 | /mnt/b/yoe/master/build/tmp/work/riscv32-yoe-linux-musl/vulkan-samples/git-r0/git/third_party/vma/src/vk_mem_alloc.h:3803:33: note: candidate function not viable: no known conversion from 'vk::Buffer' to 'V
12 kBuffer' (aka 'unsigned long long') for 2nd argument
14 Upstream-Status: Submitted [https://github.com/KhronosGroup/Vulkan-Samples/pull/395]
15 Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 framework/core/hpp_buffer.cpp | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/framework/core/hpp_buffer.cpp b/framework/core/hpp_buffer.cpp
21 index c1f5649..2609e4e 100644
22 --- a/framework/core/hpp_buffer.cpp
23 +++ b/framework/core/hpp_buffer.cpp
24 @@ -146,7 +146,7 @@ void HPPBuffer::destroy()
26 assert(vmaAllocation != VK_NULL_HANDLE);
28 - vmaDestroyBuffer(vmaAllocator, handle, vmaAllocation);
29 + vmaDestroyBuffer(vmaAllocator, static_cast<VkBuffer>(handle), vmaAllocation);