Function inexor::vulkan_renderer::wrapper::swapchains::choose_image_count

Function Documentation

std::uint32_t inexor::vulkan_renderer::wrapper::swapchains::choose_image_count(const VkSurfaceCapabilitiesKHR &caps, std::uint32_t frames_in_flight = 1)

Select the number of swapchain images.

Note

Design decision: It was decided to expose frames_in_flight as parameter because this will play an important role in the automatic double or triple buffering inside of rendergraph later, which affects swapchains.

Parameters:
  • caps – The capabilities of the used surface.

  • frames_in_flight – The number of frames in flight.

Returns:

The chosen image count.