Interface JCSwapchainImageType
- All Superinterfaces:
AutoCloseable
An image acquired from a swapchain.
-
Method Details
-
format
VulkanFormat format()- Returns:
- The format of the image
-
size
VulkanExtent2D size()- Returns:
- The image size
-
index
JCSwapchainImageIndex index()- Returns:
- The index of the image within the swapchain
-
image
VulkanImageType image()- Returns:
- The image
-
imageView
VulkanImageViewType imageView()- Returns:
- The image view
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
VulkanException
-
present
Submit this image for presentation.- Throws:
VulkanException- On errors
-
imageReadySemaphore
VulkanSemaphoreBinaryType imageReadySemaphore()- Returns:
- A semaphore signalled when the image is ready
-
renderFinishedSemaphore
VulkanSemaphoreBinaryType renderFinishedSemaphore()- Returns:
- A semaphore to be signalled when rendering to the image is done
-
swapchain
VulkanExtKHRSwapChainType.VulkanKHRSwapChainType swapchain()- Returns:
- The swapchain to which the image belongs
-