Package org.lwjgl.vulkan
Class EXTDisplayControl
java.lang.Object
org.lwjgl.vulkan.EXTDisplayControl
This extension defines a set of utility functions for use with the
VK_KHR_display and VK_KHR_display_swapchain extensions.
- Name String
VK_EXT_display_control- Extension Type
- Device extension
- Registered Extension Number
- 92
- Revision
- 1
- Extension and Version Dependencies
VK_EXT_display_surface_counterandVK_KHR_swapchain- Contact
- James Jones cubanismo
Other Extension Metadata
- Last Modified Date
- 2016-12-13
- IP Status
- No known IP claims.
- Contributors
- Pierre Boudier, NVIDIA
- James Jones, NVIDIA
- Damien Leone, NVIDIA
- Pierre-Loup Griffais, Valve
- Daniel Vetter, Intel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intVkDeviceEventTypeEXT - Events that can occur on a device objectstatic final intVkDisplayEventTypeEXT - Events that can occur on a display objectstatic final intVkDisplayPowerStateEXT - Possible power states for a displaystatic final intVkDisplayPowerStateEXT - Possible power states for a displaystatic final intVkDisplayPowerStateEXT - Possible power states for a displaystatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkDisplayPowerControlEXT(org.lwjgl.vulkan.VkDevice device, long display, long pDisplayPowerInfo) Unsafe version of:DisplayPowerControlEXTstatic intnvkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device, long swapchain, int counter, long pCounterValue) Unsafe version of:GetSwapchainCounterEXTstatic intnvkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device, long pDeviceEventInfo, long pAllocator, long pFence) Unsafe version of:RegisterDeviceEventEXTstatic intnvkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device, long display, long pDisplayEventInfo, long pAllocator, long pFence) Unsafe version of:RegisterDisplayEventEXTstatic intvkDisplayPowerControlEXT(org.lwjgl.vulkan.VkDevice device, long display, VkDisplayPowerInfoEXT pDisplayPowerInfo) Set the power state of a display.static intvkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device, long swapchain, int counter, long[] pCounterValue) Array version of:GetSwapchainCounterEXTstatic intvkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device, long swapchain, int counter, LongBuffer pCounterValue) Query the current value of a surface counter.static intvkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device, VkDeviceEventInfoEXT pDeviceEventInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pFence) Array version of:RegisterDeviceEventEXTstatic intvkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device, VkDeviceEventInfoEXT pDeviceEventInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pFence) Signal a fence when a device event occurs.static intvkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device, long display, VkDisplayEventInfoEXT pDisplayEventInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pFence) Array version of:RegisterDisplayEventEXTstatic intvkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device, long display, VkDisplayEventInfoEXT pDisplayEventInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pFence) Signal a fence when a display event occurs.
-
Field Details
-
VK_EXT_DISPLAY_CONTROL_SPEC_VERSION
public static final int VK_EXT_DISPLAY_CONTROL_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT
public static final int VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT
public static final int VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXT
public static final int VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT
public static final int VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXTExtendsVkStructureType.Enum values:
- See Also:
-
VK_DISPLAY_POWER_STATE_OFF_EXT
public static final int VK_DISPLAY_POWER_STATE_OFF_EXTVkDisplayPowerStateEXT - Possible power states for a displayDescription
DISPLAY_POWER_STATE_OFF_EXTspecifies that the display is powered down.DISPLAY_POWER_STATE_SUSPEND_EXTspecifies that the display is put into a low power mode, from which it may be able to transition back toDISPLAY_POWER_STATE_ON_EXTmore quickly than if it were inDISPLAY_POWER_STATE_OFF_EXT. This state may be the same asDISPLAY_POWER_STATE_OFF_EXT.DISPLAY_POWER_STATE_ON_EXTspecifies that the display is powered on.
See Also
- See Also:
-
VK_DISPLAY_POWER_STATE_SUSPEND_EXT
public static final int VK_DISPLAY_POWER_STATE_SUSPEND_EXTVkDisplayPowerStateEXT - Possible power states for a displayDescription
DISPLAY_POWER_STATE_OFF_EXTspecifies that the display is powered down.DISPLAY_POWER_STATE_SUSPEND_EXTspecifies that the display is put into a low power mode, from which it may be able to transition back toDISPLAY_POWER_STATE_ON_EXTmore quickly than if it were inDISPLAY_POWER_STATE_OFF_EXT. This state may be the same asDISPLAY_POWER_STATE_OFF_EXT.DISPLAY_POWER_STATE_ON_EXTspecifies that the display is powered on.
See Also
- See Also:
-
VK_DISPLAY_POWER_STATE_ON_EXT
public static final int VK_DISPLAY_POWER_STATE_ON_EXTVkDisplayPowerStateEXT - Possible power states for a displayDescription
DISPLAY_POWER_STATE_OFF_EXTspecifies that the display is powered down.DISPLAY_POWER_STATE_SUSPEND_EXTspecifies that the display is put into a low power mode, from which it may be able to transition back toDISPLAY_POWER_STATE_ON_EXTmore quickly than if it were inDISPLAY_POWER_STATE_OFF_EXT. This state may be the same asDISPLAY_POWER_STATE_OFF_EXT.DISPLAY_POWER_STATE_ON_EXTspecifies that the display is powered on.
See Also
- See Also:
-
VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT
public static final int VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXTVkDeviceEventTypeEXT - Events that can occur on a device objectDescription
DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXTspecifies that the fence is signaled when a display is plugged into or unplugged from the specified device. Applications can use this notification to determine when they need to re-enumerate the available displays on a device.
See Also
- See Also:
-
VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT
public static final int VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXTVkDisplayEventTypeEXT - Events that can occur on a display objectDescription
DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXTspecifies that the fence is signaled when the first pixel of the next display refresh cycle leaves the display engine for the display.
See Also
- See Also:
-
-
Method Details
-
nvkDisplayPowerControlEXT
public static int nvkDisplayPowerControlEXT(org.lwjgl.vulkan.VkDevice device, long display, long pDisplayPowerInfo) Unsafe version of:DisplayPowerControlEXT -
vkDisplayPowerControlEXT
public static int vkDisplayPowerControlEXT(org.lwjgl.vulkan.VkDevice device, long display, VkDisplayPowerInfoEXT pDisplayPowerInfo) Set the power state of a display.C Specification
To set the power state of a display, call:
VkResult vkDisplayPowerControlEXT( VkDevice device, VkDisplayKHR display, const VkDisplayPowerInfoEXT* pDisplayPowerInfo);Valid Usage (Implicit)
devicemust be a validVkDevicehandledisplaymust be a validVkDisplayKHRhandlepDisplayPowerInfomust be a valid pointer to a validVkDisplayPowerInfoEXTstructure- Both of
device, anddisplaymust have been created, allocated, or retrieved from the sameVkPhysicalDevice
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- a logical device associated withdisplay.display- the display whose power state is modified.pDisplayPowerInfo- a pointer to aVkDisplayPowerInfoEXTstructure specifying the new power state ofdisplay.
-
nvkRegisterDeviceEventEXT
public static int nvkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device, long pDeviceEventInfo, long pAllocator, long pFence) Unsafe version of:RegisterDeviceEventEXT -
vkRegisterDeviceEventEXT
public static int vkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device, VkDeviceEventInfoEXT pDeviceEventInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pFence) Signal a fence when a device event occurs.C Specification
To create a fence that will be signaled when an event occurs on a device, call:
VkResult vkRegisterDeviceEventEXT( VkDevice device, const VkDeviceEventInfoEXT* pDeviceEventInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence);Valid Usage (Implicit)
devicemust be a validVkDevicehandlepDeviceEventInfomust be a valid pointer to a validVkDeviceEventInfoEXTstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pFencemust be a valid pointer to aVkFencehandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- a logical device on which the event may occur.pDeviceEventInfo- a pointer to aVkDeviceEventInfoEXTstructure describing the event of interest to the application.pAllocator- controls host memory allocation as described in the Memory Allocation chapter.pFence- a pointer to a handle in which the resulting fence object is returned.
-
nvkRegisterDisplayEventEXT
public static int nvkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device, long display, long pDisplayEventInfo, long pAllocator, long pFence) Unsafe version of:RegisterDisplayEventEXT -
vkRegisterDisplayEventEXT
public static int vkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device, long display, VkDisplayEventInfoEXT pDisplayEventInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pFence) Signal a fence when a display event occurs.C Specification
To create a fence that will be signaled when an event occurs on a
VkDisplayKHRobject, call:VkResult vkRegisterDisplayEventEXT( VkDevice device, VkDisplayKHR display, const VkDisplayEventInfoEXT* pDisplayEventInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence);Valid Usage (Implicit)
devicemust be a validVkDevicehandledisplaymust be a validVkDisplayKHRhandlepDisplayEventInfomust be a valid pointer to a validVkDisplayEventInfoEXTstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pFencemust be a valid pointer to aVkFencehandle- Both of
device, anddisplaymust have been created, allocated, or retrieved from the sameVkPhysicalDevice
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
device- a logical device associated withdisplaydisplay- the display on which the event may occur.pDisplayEventInfo- a pointer to aVkDisplayEventInfoEXTstructure describing the event of interest to the application.pAllocator- controls host memory allocation as described in the Memory Allocation chapter.pFence- a pointer to a handle in which the resulting fence object is returned.
-
nvkGetSwapchainCounterEXT
public static int nvkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device, long swapchain, int counter, long pCounterValue) Unsafe version of:GetSwapchainCounterEXT -
vkGetSwapchainCounterEXT
public static int vkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device, long swapchain, int counter, LongBuffer pCounterValue) Query the current value of a surface counter.C Specification
The requested counters become active when the first presentation command for the associated swapchain is processed by the presentation engine. To query the value of an active counter, use:
VkResult vkGetSwapchainCounterEXT( VkDevice device, VkSwapchainKHR swapchain, VkSurfaceCounterFlagBitsEXT counter, uint64_t* pCounterValue);Description
If a counter is not available because the swapchain is out of date, the implementation may return
ERROR_OUT_OF_DATE_KHR.Valid Usage
- One or more present commands on
swapchainmust have been processed by the presentation engine
Valid Usage (Implicit)
devicemust be a validVkDevicehandleswapchainmust be a validVkSwapchainKHRhandlecountermust be a validVkSurfaceCounterFlagBitsEXTvaluepCounterValuemust be a valid pointer to auint64_tvalueswapchainmust have been created, allocated, or retrieved fromdevice
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
device- theVkDeviceassociated withswapchain.swapchain- the swapchain from which to query the counter value.counter- aVkSurfaceCounterFlagBitsEXTvalue specifying the counter to query.pCounterValue- will return the current value of the counter.
- One or more present commands on
-
vkRegisterDeviceEventEXT
public static int vkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device, VkDeviceEventInfoEXT pDeviceEventInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pFence) Array version of:RegisterDeviceEventEXT -
vkRegisterDisplayEventEXT
public static int vkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device, long display, VkDisplayEventInfoEXT pDisplayEventInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pFence) Array version of:RegisterDisplayEventEXT -
vkGetSwapchainCounterEXT
public static int vkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device, long swapchain, int counter, long[] pCounterValue) Array version of:GetSwapchainCounterEXT
-