Skip to main content

Logical Device

Construction

VkSurfaceKHR surface;

// ...

vtk::Ref<vtk::LogicalDevice> logicalDevice = vtk::LogicalDeviceBuilder(instance, physicalDevice)
.addGraphicsQueue()
.addPresentQueue(surface)
.addSwapchainSupport() // Adds `VK_KHR_swapchain` extension
.build();