mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 23:24:34 +00:00
Make SwapchainBuilder constructor take allocation callbacks from device
This commit is contained in:
parent
bfc0f06de0
commit
daf244d180
@ -1530,6 +1530,7 @@ SwapchainBuilder::SwapchainBuilder (Device const& device) {
|
|||||||
// TODO: handle error of queue's not available
|
// TODO: handle error of queue's not available
|
||||||
info.graphics_queue_index = present.value ();
|
info.graphics_queue_index = present.value ();
|
||||||
info.present_queue_index = graphics.value ();
|
info.present_queue_index = graphics.value ();
|
||||||
|
info.allocation_callbacks = device.allocation_callbacks;
|
||||||
}
|
}
|
||||||
SwapchainBuilder::SwapchainBuilder (Device const& device, VkSurfaceKHR const surface) {
|
SwapchainBuilder::SwapchainBuilder (Device const& device, VkSurfaceKHR const surface) {
|
||||||
info.device = device.device;
|
info.device = device.device;
|
||||||
@ -1542,6 +1543,7 @@ SwapchainBuilder::SwapchainBuilder (Device const& device, VkSurfaceKHR const sur
|
|||||||
// TODO: handle error of queue's not available
|
// TODO: handle error of queue's not available
|
||||||
info.graphics_queue_index = present.value ();
|
info.graphics_queue_index = present.value ();
|
||||||
info.present_queue_index = graphics.value ();
|
info.present_queue_index = graphics.value ();
|
||||||
|
info.allocation_callbacks = device.allocation_callbacks;
|
||||||
}
|
}
|
||||||
SwapchainBuilder::SwapchainBuilder (VkPhysicalDevice const physical_device,
|
SwapchainBuilder::SwapchainBuilder (VkPhysicalDevice const physical_device,
|
||||||
VkDevice const device,
|
VkDevice const device,
|
||||||
|
Loading…
Reference in New Issue
Block a user