mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 07:24:34 +00:00
Document constructors for SwapchainBuilder
Specifically done for the 3rd constructor which will query the necessary queues when they are not provided
This commit is contained in:
parent
045b1e7b0f
commit
84ba7a79ee
@ -614,8 +614,13 @@ void destroy_swapchain(Swapchain const& swapchain);
|
||||
|
||||
class SwapchainBuilder {
|
||||
public:
|
||||
// Construct a SwapchainBuilder with a `vkb::Device`
|
||||
explicit SwapchainBuilder(Device const& device);
|
||||
// Construct a SwapchainBuilder with a specific VkSurfaceKHR handle and `vkb::Device`
|
||||
explicit SwapchainBuilder(Device const& device, VkSurfaceKHR const surface);
|
||||
// Construct a SwapchainBuilder with Vulkan handles for the physical device, device, and surface
|
||||
// Optionally can provide the uint32_t indices for the graphics and present queue
|
||||
// Note: The constructor will query the graphics & present queue if the indices are not provided
|
||||
explicit SwapchainBuilder(VkPhysicalDevice const physical_device,
|
||||
VkDevice const device,
|
||||
VkSurfaceKHR const surface,
|
||||
|
Loading…
Reference in New Issue
Block a user