public class EXTDisplayControl
extends java.lang.Object
VK_KHR_display and VK_KHR_display_swapchain extensions.
VK_EXT_display_controlVK_EXT_display_surface_counterVK_KHR_swapchain| Modifier and Type | Field and Description |
|---|---|
static int |
VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT
VkDeviceEventTypeEXT - Events that can occur on a device object
|
static int |
VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT
VkDisplayEventTypeEXT - Events that can occur on a display object
|
static int |
VK_DISPLAY_POWER_STATE_OFF_EXT
VkDisplayPowerStateEXT - Possible power states for a display
|
static int |
VK_DISPLAY_POWER_STATE_ON_EXT
VkDisplayPowerStateEXT - Possible power states for a display
|
static int |
VK_DISPLAY_POWER_STATE_SUSPEND_EXT
VkDisplayPowerStateEXT - Possible power states for a display
|
static java.lang.String |
VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME
The extension name.
|
static int |
VK_EXT_DISPLAY_CONTROL_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXT
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkDisplayPowerControlEXT(org.lwjgl.vulkan.VkDevice device,
long display,
long pDisplayPowerInfo)
Unsafe version of:
DisplayPowerControlEXT |
static int |
nvkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device,
long swapchain,
int counter,
long pCounterValue)
Unsafe version of:
GetSwapchainCounterEXT |
static int |
nvkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device,
long pDeviceEventInfo,
long pAllocator,
long pFence)
Unsafe version of:
RegisterDeviceEventEXT |
static int |
nvkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device,
long display,
long pDisplayEventInfo,
long pAllocator,
long pFence)
Unsafe version of:
RegisterDisplayEventEXT |
static int |
vkDisplayPowerControlEXT(org.lwjgl.vulkan.VkDevice device,
long display,
VkDisplayPowerInfoEXT pDisplayPowerInfo)
Set the power state of a display.
|
static int |
vkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device,
long swapchain,
int counter,
long[] pCounterValue)
Array version of:
GetSwapchainCounterEXT |
static int |
vkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device,
long swapchain,
int counter,
java.nio.LongBuffer pCounterValue)
Query the current value of a surface counter.
|
static int |
vkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device,
VkDeviceEventInfoEXT pDeviceEventInfo,
VkAllocationCallbacks pAllocator,
long[] pFence)
Array version of:
RegisterDeviceEventEXT |
static int |
vkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device,
VkDeviceEventInfoEXT pDeviceEventInfo,
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pFence)
Signal a fence when a device event occurs.
|
static int |
vkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device,
long display,
VkDisplayEventInfoEXT pDisplayEventInfo,
VkAllocationCallbacks pAllocator,
long[] pFence)
Array version of:
RegisterDisplayEventEXT |
static int |
vkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device,
long display,
VkDisplayEventInfoEXT pDisplayEventInfo,
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pFence)
Signal a fence when a display event occurs.
|
public static final int VK_EXT_DISPLAY_CONTROL_SPEC_VERSION
public static final java.lang.String VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT
VkStructureType.
public static final int VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT
VkStructureType.
public static final int VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXT
VkStructureType.
public static final int VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT
VkStructureType.
public static final int VK_DISPLAY_POWER_STATE_OFF_EXT
DISPLAY_POWER_STATE_OFF_EXT specifies that the display is powered down.DISPLAY_POWER_STATE_SUSPEND_EXT specifies that the display is put into a low power mode, from which it may be able to transition back to DISPLAY_POWER_STATE_ON_EXT more quickly than if it were in DISPLAY_POWER_STATE_OFF_EXT. This state may be the same as DISPLAY_POWER_STATE_OFF_EXT.DISPLAY_POWER_STATE_ON_EXT specifies that the display is powered on.public static final int VK_DISPLAY_POWER_STATE_SUSPEND_EXT
DISPLAY_POWER_STATE_OFF_EXT specifies that the display is powered down.DISPLAY_POWER_STATE_SUSPEND_EXT specifies that the display is put into a low power mode, from which it may be able to transition back to DISPLAY_POWER_STATE_ON_EXT more quickly than if it were in DISPLAY_POWER_STATE_OFF_EXT. This state may be the same as DISPLAY_POWER_STATE_OFF_EXT.DISPLAY_POWER_STATE_ON_EXT specifies that the display is powered on.public static final int VK_DISPLAY_POWER_STATE_ON_EXT
DISPLAY_POWER_STATE_OFF_EXT specifies that the display is powered down.DISPLAY_POWER_STATE_SUSPEND_EXT specifies that the display is put into a low power mode, from which it may be able to transition back to DISPLAY_POWER_STATE_ON_EXT more quickly than if it were in DISPLAY_POWER_STATE_OFF_EXT. This state may be the same as DISPLAY_POWER_STATE_OFF_EXT.DISPLAY_POWER_STATE_ON_EXT specifies that the display is powered on.public static final int VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT
DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT specifies 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.public static final int VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT
DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT specifies that the fence is signaled when the first pixel of the next display refresh cycle leaves the display engine for the display.public static int nvkDisplayPowerControlEXT(org.lwjgl.vulkan.VkDevice device,
long display,
long pDisplayPowerInfo)
DisplayPowerControlEXTpublic static int vkDisplayPowerControlEXT(org.lwjgl.vulkan.VkDevice device,
long display,
VkDisplayPowerInfoEXT pDisplayPowerInfo)
To set the power state of a display, call:
VkResult vkDisplayPowerControlEXT(
VkDevice device,
VkDisplayKHR display,
const VkDisplayPowerInfoEXT* pDisplayPowerInfo);
device must be a valid VkDevice handledisplay must be a valid VkDisplayKHR handlepDisplayPowerInfo must be a valid pointer to a valid VkDisplayPowerInfoEXT structuredevice - a logical device associated with display.display - the display whose power state is modified.pDisplayPowerInfo - a VkDisplayPowerInfoEXT structure specifying the new power state of display.public static int nvkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device,
long pDeviceEventInfo,
long pAllocator,
long pFence)
RegisterDeviceEventEXTpublic static int vkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device,
VkDeviceEventInfoEXT pDeviceEventInfo,
@Nullable
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pFence)
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);
device must be a valid VkDevice handlepDeviceEventInfo must be a valid pointer to a valid VkDeviceEventInfoEXT structurepAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structurepFence must be a valid pointer to a VkFence handledevice - a logical device on which the event may occur.pDeviceEventInfo - a pointer to a VkDeviceEventInfoEXT structure 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.public static int nvkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device,
long display,
long pDisplayEventInfo,
long pAllocator,
long pFence)
RegisterDisplayEventEXTpublic static int vkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device,
long display,
VkDisplayEventInfoEXT pDisplayEventInfo,
@Nullable
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pFence)
To create a fence that will be signaled when an event occurs on a VkDisplayKHR object, call:
VkResult vkRegisterDisplayEventEXT(
VkDevice device,
VkDisplayKHR display,
const VkDisplayEventInfoEXT* pDisplayEventInfo,
const VkAllocationCallbacks* pAllocator,
VkFence* pFence);
device must be a valid VkDevice handledisplay must be a valid VkDisplayKHR handlepDisplayEventInfo must be a valid pointer to a valid VkDisplayEventInfoEXT structurepAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structurepFence must be a valid pointer to a VkFence handledevice - a logical device associated with displaydisplay - the display on which the event may occur.pDisplayEventInfo - a pointer to a VkDisplayEventInfoEXT structure 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.public static int nvkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device,
long swapchain,
int counter,
long pCounterValue)
GetSwapchainCounterEXTpublic static int vkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device,
long swapchain,
int counter,
java.nio.LongBuffer pCounterValue)
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);
If a counter is not available because the swapchain is out of date, the implementation may return ERROR_OUT_OF_DATE_KHR.
swapchain must have been processed by the presentation engine.device must be a valid VkDevice handleswapchain must be a valid VkSwapchainKHR handlecounter must be a valid VkSurfaceCounterFlagBitsEXT valuepCounterValue must be a valid pointer to a uint64_t valuedevice, and swapchain must have been created, allocated, or retrieved from the same VkInstancedevice - the VkDevice associated with swapchain.swapchain - the swapchain from which to query the counter value.counter - the counter to query.pCounterValue - will return the current value of the counter.public static int vkRegisterDeviceEventEXT(org.lwjgl.vulkan.VkDevice device,
VkDeviceEventInfoEXT pDeviceEventInfo,
@Nullable
VkAllocationCallbacks pAllocator,
long[] pFence)
RegisterDeviceEventEXTpublic static int vkRegisterDisplayEventEXT(org.lwjgl.vulkan.VkDevice device,
long display,
VkDisplayEventInfoEXT pDisplayEventInfo,
@Nullable
VkAllocationCallbacks pAllocator,
long[] pFence)
RegisterDisplayEventEXTpublic static int vkGetSwapchainCounterEXT(org.lwjgl.vulkan.VkDevice device,
long swapchain,
int counter,
long[] pCounterValue)
GetSwapchainCounterEXTCopyright LWJGL. All Rights Reserved. License terms.