From f091c5a4a4e588466f4ecd70effb06404d43f5f0 Mon Sep 17 00:00:00 2001 From: Cody Goodson Date: Tue, 11 May 2021 14:25:29 -0500 Subject: [PATCH] Forgot to flag as const --- src/VkBootstrap.cpp | 2 +- src/VkBootstrap.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VkBootstrap.cpp b/src/VkBootstrap.cpp index 671926d..30c51f5 100644 --- a/src/VkBootstrap.cpp +++ b/src/VkBootstrap.cpp @@ -1310,7 +1310,7 @@ std::vector PhysicalDevice::get_queue_families() const // --- DispatchTable --- // -DispatchTable Device::get_dispatch_table() { +DispatchTable Device::get_dispatch_table() const { return DispatchTable(device, detail::vulkan_functions().fp_vkGetDeviceProcAddr); } diff --git a/src/VkBootstrap.h b/src/VkBootstrap.h index 88b8931..342b0ba 100644 --- a/src/VkBootstrap.h +++ b/src/VkBootstrap.h @@ -545,7 +545,7 @@ struct Device { VkAllocationCallbacks* allocation_callbacks = VK_NULL_HANDLE; PFN_vkGetDeviceProcAddr fp_vkGetDeviceProcAddr = nullptr; - DispatchTable get_dispatch_table(); + DispatchTable get_dispatch_table() const; detail::Result get_queue_index(QueueType type) const; // Only a compute or transfer queue type is valid. All other queue types do not support a 'dedicated' queue index