Interface VulkanExtKHRSwapChainType.VulkanKHRSwapChainType
-
- All Superinterfaces:
java.lang.AutoCloseable
,VulkanHandleType
- Enclosing interface:
- VulkanExtKHRSwapChainType
public static interface VulkanExtKHRSwapChainType.VulkanKHRSwapChainType extends VulkanHandleType
A created swap chain.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VulkanSwapChainImageAcquisition
acquireImageWithFence(long timeout, VulkanFenceType fence)
Attempt to acquire an image from the swap chain.VulkanSwapChainImageAcquisition
acquireImageWithSemaphore(long timeout, VulkanSemaphoreType semaphore)
Attempt to acquire an image from the swap chain.VulkanSwapChainImageAcquisition
acquireImageWithSemaphoreAndFence(long timeout, VulkanSemaphoreType semaphore, VulkanFenceType fence)
Attempt to acquire an image from the swap chain.java.util.List<VulkanImageType>
images()
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanHandleType
close, isClosed
-
-
-
-
Method Detail
-
images
java.util.List<VulkanImageType> images() throws VulkanException
- Returns:
- The list of images associated with the swap chain
- Throws:
VulkanException
- On errors
-
acquireImageWithSemaphore
VulkanSwapChainImageAcquisition acquireImageWithSemaphore(long timeout, VulkanSemaphoreType semaphore) throws VulkanException
Attempt to acquire an image from the swap chain. Iftimeout
is0
, the method will return immediately. Iftimeout
is0xffffffff_ffffffff
, the method will wait indefinitely.- Parameters:
semaphore
- A semaphore that will be signalled when an image is availabletimeout
- A timeout value in nanoseconds.- Returns:
- An image acquisition
- Throws:
VulkanException
- On errors
-
acquireImageWithFence
VulkanSwapChainImageAcquisition acquireImageWithFence(long timeout, VulkanFenceType fence) throws VulkanException
Attempt to acquire an image from the swap chain. Iftimeout
is0
, the method will return immediately. Iftimeout
is0xffffffff_ffffffff
, the method will wait indefinitely.- Parameters:
fence
- A fence that will be signalled when an image is availabletimeout
- A timeout value in nanoseconds.- Returns:
- An image acquisition
- Throws:
VulkanException
- On errors
-
acquireImageWithSemaphoreAndFence
VulkanSwapChainImageAcquisition acquireImageWithSemaphoreAndFence(long timeout, VulkanSemaphoreType semaphore, VulkanFenceType fence) throws VulkanException
Attempt to acquire an image from the swap chain. Iftimeout
is0
, the method will return immediately. Iftimeout
is0xffffffff_ffffffff
, the method will wait indefinitely.- Parameters:
fence
- A fence that will be signalled when an image is availablesemaphore
- A semaphore that will be signalled when an image is availabletimeout
- A timeout value in nanoseconds.- Returns:
- An image acquisition
- Throws:
VulkanException
- On errors
-
-