Package org.lwjgl.vulkan
Class KHRSharedPresentableImage
- java.lang.Object
-
- org.lwjgl.vulkan.KHRSharedPresentableImage
-
public class KHRSharedPresentableImage extends java.lang.ObjectThis extension extendsVK_KHR_swapchainto 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 intVK_IMAGE_LAYOUT_SHARED_PRESENT_KHRExtendsVkImageLayout.static java.lang.StringVK_KHR_SHARED_PRESENTABLE_IMAGE_EXTENSION_NAMEThe extension name.static intVK_KHR_SHARED_PRESENTABLE_IMAGE_SPEC_VERSIONThe extension specification version.static intVK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR
VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHRExtendsVkPresentModeKHR.static intVK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHRExtendsVkStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intvkGetSwapchainStatusKHR(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)
devicemust be a validVkDevicehandleswapchainmust be a validVkSwapchainKHRhandle- Both of
device, andswapchainmust have been created, allocated, or retrieved from the sameVkInstance
Host Synchronization
- Host access to
swapchainmust 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.
-
-