Interface JCSwapchainConfigurationType

All Known Implementing Classes:
JCSwapchainConfiguration

@Immutable public interface JCSwapchainConfigurationType
The configuration values required to create (and re-create) swapchains.
  • Method Details

    • requestedMinimumImages

      @Default default int requestedMinimumImages()
      Returns:
      The requested minimum number of swapchain images
    • framesInFlight

      @Default default int framesInFlight()
      Returns:
      The number of frames in flight (the number of frame-slot resources allocated by the manager: acquire semaphore, bounding fence, and present fence per slot)
    • device

      Returns:
      The logical device.
    • surface

      Returns:
      The KHR_surface.
    • extentSupplier

      The supplier of the extent that the surface should have. See JCSwapchainExtentSupplierType.
      Returns:
      The extent supplier
    • swapChainExtension

      VulkanExtKHRSwapChainType swapChainExtension()
      Returns:
      The KHR_swapchain extension.
    • surfaceExtension

      VulkanExtKHRSurfaceType surfaceExtension()
      Returns:
      The KHR_surface extension.
    • graphicsQueue

      VulkanQueueType graphicsQueue()
      Returns:
      The queue used for graphics operations
    • presentationQueue

      VulkanQueueType presentationQueue()
      Returns:
      The queue used for presentation operations
    • preferredModes

      List<VulkanPresentModeKHR> preferredModes()
      The list of presentation modes to try in order of preference (earlier entries have higher preference).
      Returns:
      The list of presentation modes in preference order
    • preferredFormats

      List<VulkanSurfaceFormatKHR> preferredFormats()
      The list of surface formats to try in order of preference (earlier entries have higher preference).
      Returns:
      The list of surface formats in preference order
    • imageUsageFlags

      Set<VulkanImageUsageFlag> imageUsageFlags()
      Returns:
      The usage flags required to be present on images returned from the swapchain
    • surfaceAlphaFlags

      @Default default Set<VulkanCompositeAlphaFlagKHR> surfaceAlphaFlags()
      Returns:
      The required surface alpha flags
    • acquireTimeout

      @Default default Duration acquireTimeout()
      The overall timeout for the frame acquire operation. If the frame cannot be acquired within this duration, the acquire will fail.
      Returns:
      The overall acquire timeout (default: 5 seconds)
    • acquireImageTimeout

      @Default default Duration acquireImageTimeout()
      The timeout for each individual vkAcquireNextImageKHR call within the acquire retry loop. This must not exceed acquireTimeout().
      Returns:
      The per-call image acquisition timeout (default: 1 second)
    • checkTimeouts

      @Check default void checkTimeouts()
      Check that the per-call timeout does not exceed the overall timeout.