Package org.lwjgl.vulkan
Class KHRSharedPresentableImage
- java.lang.Object
-
- org.lwjgl.vulkan.KHRSharedPresentableImage
-
public class KHRSharedPresentableImage extends java.lang.Object
This extension extendsVK_KHR_swapchain
to enable creation of a shared presentable image. This allows the application to use the image while the presention engine is accessing it, in order to reduce the latency between rendering and presentation.- Name String
VK_KHR_shared_presentable_image
- Extension Type
- Device extension
- Registered Extension Number
- 112
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_swapchain
- Requires
VK_KHR_get_physical_device_properties2
- Requires
VK_KHR_get_surface_capabilities2
- Contact
- Alon Or-bach alonorbach
- Last Modified Date
- 2017-03-20
- IP Status
- No known IP claims.
- Contributors
- Alon Or-bach, Samsung Electronics
- Ian Elliott, Google
- Jesse Hall, Google
- Pablo Ceballos, Google
- Chris Forbes, Google
- Jeff Juliano, NVIDIA
- James Jones, NVIDIA
- Daniel Rakos, AMD
- Tobias Hector, Imagination Technologies
- Graham Connor, Imagination Technologies
- Michael Worcester, Imagination Technologies
- Cass Everitt, Oculus
- Johannes Van Waveren, Oculus
-
-
Field Summary
Fields Modifier and Type Field Description static int
VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR
ExtendsVkImageLayout
.static java.lang.String
VK_KHR_SHARED_PRESENTABLE_IMAGE_EXTENSION_NAME
The extension name.static int
VK_KHR_SHARED_PRESENTABLE_IMAGE_SPEC_VERSION
The extension specification version.static int
VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR
VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHRExtendsVkPresentModeKHR
.static int
VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHR
ExtendsVkStructureType
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
vkGetSwapchainStatusKHR(VkDevice device, long swapchain)
Get a swapchain's status.
-
-
-
Field Detail
-
VK_KHR_SHARED_PRESENTABLE_IMAGE_SPEC_VERSION
The extension specification version.
-
VK_KHR_SHARED_PRESENTABLE_IMAGE_EXTENSION_NAME
The extension name.
-
VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHR
ExtendsVkStructureType
.
-
VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR, VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR
ExtendsVkPresentModeKHR
.Enum values:
-
VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR
ExtendsVkImageLayout
.
-
-
Method Detail
-
vkGetSwapchainStatusKHR
public static int vkGetSwapchainStatusKHR(VkDevice device, long swapchain)
Get a swapchain's status.C Specification
In order to query a swapchain's status when rendering to a shared presentable image, call:
VkResult vkGetSwapchainStatusKHR( VkDevice device, VkSwapchainKHR swapchain);
Valid Usage (Implicit)
device
must be a validVkDevice
handleswapchain
must be a validVkSwapchainKHR
handle- Both of
device
, andswapchain
must have been created, allocated, or retrieved from the sameVkInstance
Host Synchronization
- Host access to
swapchain
must be externally synchronized
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
device
- the device associated withswapchain
.swapchain
- the swapchain to query.
-
-