Function inexor::vulkan_renderer::wrapper::swapchains::choose_image_extent

Function Documentation

VkExtent2D inexor::vulkan_renderer::wrapper::swapchains::choose_image_extent(const VkExtent2D &requested_extent, const VkSurfaceCapabilitiesKHR &caps, const VkExtent2D &current_extent)

Select a swapchain image extent.

Parameters:
  • requested_extent – The requested image extent.

  • caps – The capabilities of the used surface.

  • current_extent – The current image extent.

Returns:

The chosen image extent.