Forgot to flag as const

This commit is contained in:
Cody Goodson 2021-05-11 14:25:29 -05:00 committed by Charles Giessen
parent 5c5b8dad34
commit f091c5a4a4
2 changed files with 2 additions and 2 deletions

View File

@ -1310,7 +1310,7 @@ std::vector<VkQueueFamilyProperties> 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);
}

View File

@ -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<uint32_t> 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