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