Interface JCSwapchainConfigurationType
- All Known Implementing Classes:
JCSwapchainConfiguration
@Immutable
public interface JCSwapchainConfigurationType
The configuration values required to create (and re-create) swapchains.
-
Method Summary
Modifier and TypeMethodDescriptiondefault DurationThe timeout for each individualvkAcquireNextImageKHRcall within the acquire retry loop.default DurationThe overall timeout for the frame acquire operation.default voidCheck that the per-call timeout does not exceed the overall timeout.device()The supplier of the extent that the surface should have.default intThe list of surface formats to try in order of preference (earlier entries have higher preference).The list of presentation modes to try in order of preference (earlier entries have higher preference).default intsurface()default Set<VulkanCompositeAlphaFlagKHR>
-
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
VulkanLogicalDeviceType device()- Returns:
- The logical device.
-
surface
- Returns:
- The KHR_surface.
-
extentSupplier
JCSwapchainExtentSupplierType extentSupplier()The supplier of the extent that the surface should have. SeeJCSwapchainExtentSupplierType.- 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
- Returns:
- The required surface alpha flags
-
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
The timeout for each individualvkAcquireNextImageKHRcall within the acquire retry loop. This must not exceedacquireTimeout().- 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.
-