Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class EXTDisplayControl

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

This extension defines a set of utility functions for use with the VK_KHR_display and VK_KHR_display_swapchain extensions.
VK_EXT_display_control
Name String
VK_EXT_display_control
Extension Type
Device extension
Registered Extension Number
92
Revision
1
Extension and Version Dependencies
VK_EXT_display_surface_counter and VK_KHR_swapchain
Contact
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

Modifier and TypeField and Description
public static final int
VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT

VkDeviceEventTypeEXT - Events that can occur on a device object Description

  • 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

VkDisplayEventTypeEXT - Events that can occur on a display object Description

public static final int
VK_DISPLAY_POWER_STATE_OFF_EXT

VkDisplayPowerStateEXT - Possible power states for a display Description

public static final int
VK_DISPLAY_POWER_STATE_ON_EXT

VkDisplayPowerStateEXT - Possible power states for a display Description

public static final int
VK_DISPLAY_POWER_STATE_SUSPEND_EXT

VkDisplayPowerStateEXT - Possible power states for a display Description

public static final String
public static final int
VK_EXT_DISPLAY_CONTROL_SPEC_VERSION

The extension specification version.

public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nvkDisplayPowerControlEXT(VkDevice device, long display, long pDisplayPowerInfo)

Unsafe version of: DisplayPowerControlEXT

public static int
nvkGetSwapchainCounterEXT(VkDevice device, long swapchain, int counter, long pCounterValue)

Unsafe version of: GetSwapchainCounterEXT

public static int
nvkRegisterDeviceEventEXT(VkDevice device, long pDeviceEventInfo, long pAllocator, long pFence)

Unsafe version of: RegisterDeviceEventEXT

public static int
nvkRegisterDisplayEventEXT(VkDevice device, long display, long pDisplayEventInfo, long pAllocator, long pFence)

Unsafe version of: RegisterDisplayEventEXT

public static int
vkDisplayPowerControlEXT(VkDevice
a logical device associated with display.
device
,
long
the display whose power state is modified.
display
,
VkDisplayPowerInfoEXT
a pointer to a VkDisplayPowerInfoEXT structure specifying the new power state of display.
pDisplayPowerInfo
)

Set the power state of a display.

public static int
vkGetSwapchainCounterEXT(VkDevice
the VkDevice associated with swapchain.
device
,
long
the swapchain from which to query the counter value.
swapchain
,
int
a VkSurfaceCounterFlagBitsEXT value specifying the counter to query.
counter
,
LongBuffer
will return the current value of the counter.
pCounterValue
)

Query the current value of a surface counter.

public static int
vkGetSwapchainCounterEXT(VkDevice device, long swapchain, int counter, long[] pCounterValue)

Array version of: GetSwapchainCounterEXT

public static int
vkRegisterDeviceEventEXT(VkDevice
a logical device on which the event may occur.
device
,
VkDeviceEventInfoEXT
a pointer to a VkDeviceEventInfoEXT structure describing the event of interest to the application.
pDeviceEventInfo
,
VkAllocationCallbacks
controls host memory allocation as described in the Memory Allocation chapter.
pAllocator
,
LongBuffer
a pointer to a handle in which the resulting fence object is returned.
pFence
)

Signal a fence when a device event occurs.

public static int
vkRegisterDeviceEventEXT(VkDevice device, VkDeviceEventInfoEXT pDeviceEventInfo, VkAllocationCallbacks pAllocator, long[] pFence)

Array version of: RegisterDeviceEventEXT

public static int
vkRegisterDisplayEventEXT(VkDevice
a logical device associated with display
device
,
long
the display on which the event may occur.
display
,
VkDisplayEventInfoEXT
a pointer to a VkDisplayEventInfoEXT structure describing the event of interest to the application.
pDisplayEventInfo
,
VkAllocationCallbacks
controls host memory allocation as described in the Memory Allocation chapter.
pAllocator
,
LongBuffer
a pointer to a handle in which the resulting fence object is returned.
pFence
)

Signal a fence when a display event occurs.

public static int
vkRegisterDisplayEventEXT(VkDevice device, long display, VkDisplayEventInfoEXT pDisplayEventInfo, VkAllocationCallbacks pAllocator, long[] pFence)

Array version of: RegisterDisplayEventEXT

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXTback to summary
public static final int VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT

VkDeviceEventTypeEXT - Events that can occur on a device object

Description
  • 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.
See Also

VkDeviceEventInfoEXT

VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXTback to summary
public static final int VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT

VkDisplayEventTypeEXT - Events that can occur on a display object

Description
See Also

VkDisplayEventInfoEXT

VK_DISPLAY_POWER_STATE_OFF_EXTback to summary
public static final int VK_DISPLAY_POWER_STATE_OFF_EXT

VkDisplayPowerStateEXT - Possible power states for a display

Description
See Also

VkDisplayPowerInfoEXT

VK_DISPLAY_POWER_STATE_ON_EXTback to summary
public static final int VK_DISPLAY_POWER_STATE_ON_EXT

VkDisplayPowerStateEXT - Possible power states for a display

Description
See Also

VkDisplayPowerInfoEXT

VK_DISPLAY_POWER_STATE_SUSPEND_EXTback to summary
public static final int VK_DISPLAY_POWER_STATE_SUSPEND_EXT

VkDisplayPowerStateEXT - Possible power states for a display

Description
See Also

VkDisplayPowerInfoEXT

VK_EXT_DISPLAY_CONTROL_EXTENSION_NAMEback to summary
public static final String VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME

The extension name.

VK_EXT_DISPLAY_CONTROL_SPEC_VERSIONback to summary
public static final int VK_EXT_DISPLAY_CONTROL_SPEC_VERSION

The extension specification version.

VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT

Extends VkStructureType.

Enum values:

Constructor Detail

EXTDisplayControlback to summary
protected EXTDisplayControl()

Method Detail

nvkDisplayPowerControlEXTback to summary
public static int nvkDisplayPowerControlEXT(VkDevice device, long display, long pDisplayPowerInfo)

Unsafe version of: DisplayPowerControlEXT

nvkGetSwapchainCounterEXTback to summary
public static int nvkGetSwapchainCounterEXT(VkDevice device, long swapchain, int counter, long pCounterValue)

Unsafe version of: GetSwapchainCounterEXT

nvkRegisterDeviceEventEXTback to summary
public static int nvkRegisterDeviceEventEXT(VkDevice device, long pDeviceEventInfo, long pAllocator, long pFence)

Unsafe version of: RegisterDeviceEventEXT

nvkRegisterDisplayEventEXTback to summary
public static int nvkRegisterDisplayEventEXT(VkDevice device, long display, long pDisplayEventInfo, long pAllocator, long pFence)

Unsafe version of: RegisterDisplayEventEXT

vkDisplayPowerControlEXTback to summary
public static int vkDisplayPowerControlEXT(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)
  • device must be a valid VkDevice handle
  • display must be a valid VkDisplayKHR handle
  • pDisplayPowerInfo must be a valid pointer to a valid VkDisplayPowerInfoEXT structure
  • Both of device, and display must have been created, allocated, or retrieved from the same VkPhysicalDevice
Return Codes
On success, this command returns
On failure, this command returns
See Also

VkDisplayPowerInfoEXT

Parameters
device:VkDevice

a logical device associated with display.

display:long

the display whose power state is modified.

pDisplayPowerInfo:VkDisplayPowerInfoEXT

a pointer to a VkDisplayPowerInfoEXT structure specifying the new power state of display.

Annotations
@NativeType:VkResult
vkGetSwapchainCounterEXTback to summary
public static int vkGetSwapchainCounterEXT(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 swapchain must have been processed by the presentation engine
Valid Usage (Implicit)
  • device must be a valid VkDevice handle
  • swapchain must be a valid VkSwapchainKHR handle
  • counter must be a valid VkSurfaceCounterFlagBitsEXT value
  • pCounterValue must be a valid pointer to a uint64_t value
  • swapchain must have been created, allocated, or retrieved from device
Return Codes
On success, this command returns
On failure, this command returns
Parameters
device:VkDevice

the VkDevice associated with swapchain.

swapchain:long

the swapchain from which to query the counter value.

counter:int

a VkSurfaceCounterFlagBitsEXT value specifying the counter to query.

pCounterValue:LongBuffer

will return the current value of the counter.

Annotations
@NativeType:VkResult
vkGetSwapchainCounterEXTback to summary
public static int vkGetSwapchainCounterEXT(VkDevice device, long swapchain, int counter, long[] pCounterValue)

Array version of: GetSwapchainCounterEXT

Annotations
@NativeType:VkResult
vkRegisterDeviceEventEXTback to summary
public static int vkRegisterDeviceEventEXT(VkDevice device, VkDeviceEventInfoEXT pDeviceEventInfo, 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)
  • device must be a valid VkDevice handle
  • pDeviceEventInfo must be a valid pointer to a valid VkDeviceEventInfoEXT structure
  • If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure
  • pFence must be a valid pointer to a VkFence handle
Return Codes
On success, this command returns
On failure, this command returns
See Also

VkAllocationCallbacks, VkDeviceEventInfoEXT

Parameters
device:VkDevice

a logical device on which the event may occur.

pDeviceEventInfo:VkDeviceEventInfoEXT

a pointer to a VkDeviceEventInfoEXT structure describing the event of interest to the application.

pAllocator:VkAllocationCallbacks

controls host memory allocation as described in the Memory Allocation chapter.

pFence:LongBuffer

a pointer to a handle in which the resulting fence object is returned.

Annotations
@NativeType:VkResult
vkRegisterDeviceEventEXTback to summary
public static int vkRegisterDeviceEventEXT(VkDevice device, VkDeviceEventInfoEXT pDeviceEventInfo, VkAllocationCallbacks pAllocator, long[] pFence)

Array version of: RegisterDeviceEventEXT

Annotations
@NativeType:VkResult
vkRegisterDisplayEventEXTback to summary
public static int vkRegisterDisplayEventEXT(VkDevice device, long display, VkDisplayEventInfoEXT pDisplayEventInfo, 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 VkDisplayKHR object, call:


VkResult vkRegisterDisplayEventEXT(
    VkDevice                                    device,
    VkDisplayKHR                                display,
    const VkDisplayEventInfoEXT*                pDisplayEventInfo,
    const VkAllocationCallbacks*                pAllocator,
    VkFence*                                    pFence);
Valid Usage (Implicit)
  • device must be a valid VkDevice handle
  • display must be a valid VkDisplayKHR handle
  • pDisplayEventInfo must be a valid pointer to a valid VkDisplayEventInfoEXT structure
  • If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure
  • pFence must be a valid pointer to a VkFence handle
  • Both of device, and display must have been created, allocated, or retrieved from the same VkPhysicalDevice
Return Codes
On success, this command returns
On failure, this command returns
See Also

VkAllocationCallbacks, VkDisplayEventInfoEXT

Parameters
device:VkDevice

a logical device associated with display

display:long

the display on which the event may occur.

pDisplayEventInfo:VkDisplayEventInfoEXT

a pointer to a VkDisplayEventInfoEXT structure describing the event of interest to the application.

pAllocator:VkAllocationCallbacks

controls host memory allocation as described in the Memory Allocation chapter.

pFence:LongBuffer

a pointer to a handle in which the resulting fence object is returned.

Annotations
@NativeType:VkResult
vkRegisterDisplayEventEXTback to summary
public static int vkRegisterDisplayEventEXT(VkDevice device, long display, VkDisplayEventInfoEXT pDisplayEventInfo, VkAllocationCallbacks pAllocator, long[] pFence)

Array version of: RegisterDisplayEventEXT

Annotations
@NativeType:VkResult