Make const.

This commit is contained in:
Cody Goodson 2021-06-07 11:51:35 -05:00 committed by Charles Giessen
parent 0f307e06e8
commit 7bd3fcae56
2 changed files with 3 additions and 3 deletions

View File

@ -1858,7 +1858,7 @@ SwapchainBuilder& SwapchainBuilder::set_allocation_callbacks(VkAllocationCallbac
info.allocation_callbacks = callbacks;
return *this;
}
SwapchainBuilder& SwapchainBuilder::use_dispatch_table(DispatchTable& dispatch_table) {
SwapchainBuilder& SwapchainBuilder::use_dispatch_table(const DispatchTable& dispatch_table) {
info.dispatch_table = &dispatch_table;
return *this;
}

View File

@ -715,7 +715,7 @@ class SwapchainBuilder {
SwapchainBuilder& set_allocation_callbacks(VkAllocationCallbacks* callbacks);
// Provide an optional dispatch table for the builder to use for device pfn's
SwapchainBuilder& use_dispatch_table(DispatchTable& dispatch_table);
SwapchainBuilder& use_dispatch_table(const DispatchTable& dispatch_table);
private:
void add_desired_formats(std::vector<VkSurfaceFormatKHR>& formats) const;
@ -741,7 +741,7 @@ class SwapchainBuilder {
bool clipped = true;
VkSwapchainKHR old_swapchain = VK_NULL_HANDLE;
VkAllocationCallbacks* allocation_callbacks = VK_NULL_HANDLE;
DispatchTable* dispatch_table = nullptr;
const DispatchTable* dispatch_table = nullptr;
} info;
};