mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-10 02:41:47 +00:00
Make const.
This commit is contained in:
parent
0f307e06e8
commit
7bd3fcae56
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user