Class KHRDisplay
Examples
Note
The example code for the VK_KHR_display and VK_KHR_display_swapchain extensions was removed from the appendix after revision 1.0.43. The display enumeration example code was ported to the cube demo that is shipped with the official Khronos SDK, and is being kept up-to-date in that location (see: https://github.com/KhronosGroup/Vulkan-Tools/blob/main/cube/cube.c).
- Name String
VK_KHR_display- Extension Type
- Instance extension
- Registered Extension Number
- 3
- Revision
- 23
- Extension and Version Dependencies
VK_KHR_surface- Contact
Other Extension Metadata
- Last Modified Date
- 2017-03-13
- IP Status
- No known IP claims.
- Contributors
- James Jones, NVIDIA
- Norbert Nopper, Freescale
- Jeff Vigil, Qualcomm
- Daniel Rakos, AMD
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intVkDisplayPlaneAlphaFlagBitsKHR - Alpha blending typestatic final intVkDisplayPlaneAlphaFlagBitsKHR - Alpha blending typestatic final intVkDisplayPlaneAlphaFlagBitsKHR - Alpha blending typestatic final intVkDisplayPlaneAlphaFlagBitsKHR - Alpha blending typestatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkObjectType.static final intExtendsVkObjectType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkCreateDisplayModeKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, long pCreateInfo, long pAllocator, long pMode) Unsafe version of:CreateDisplayModeKHRstatic intnvkCreateDisplayPlaneSurfaceKHR(org.lwjgl.vulkan.VkInstance instance, long pCreateInfo, long pAllocator, long pSurface) Unsafe version of:CreateDisplayPlaneSurfaceKHRstatic intnvkGetDisplayModePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, long pPropertyCount, long pProperties) Unsafe version of:GetDisplayModePropertiesKHRstatic intnvkGetDisplayPlaneCapabilitiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long mode, int planeIndex, long pCapabilities) Unsafe version of:GetDisplayPlaneCapabilitiesKHRstatic intnvkGetDisplayPlaneSupportedDisplaysKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int planeIndex, long pDisplayCount, long pDisplays) Unsafe version of:GetDisplayPlaneSupportedDisplaysKHRstatic intnvkGetPhysicalDeviceDisplayPlanePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pPropertyCount, long pProperties) Unsafe version of:GetPhysicalDeviceDisplayPlanePropertiesKHRstatic intnvkGetPhysicalDeviceDisplayPropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pPropertyCount, long pProperties) Unsafe version of:GetPhysicalDeviceDisplayPropertiesKHRstatic intvkCreateDisplayModeKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pMode) Array version of:CreateDisplayModeKHRstatic intvkCreateDisplayModeKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pMode) Create a display mode.static intvkCreateDisplayPlaneSurfaceKHR(org.lwjgl.vulkan.VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pSurface) Array version of:CreateDisplayPlaneSurfaceKHRstatic intvkCreateDisplayPlaneSurfaceKHR(org.lwjgl.vulkan.VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pSurface) Create aVkSurfaceKHRstructure representing a display plane and mode.static intvkGetDisplayModePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, int[] pPropertyCount, @Nullable VkDisplayModePropertiesKHR.Buffer pProperties) Array version of:GetDisplayModePropertiesKHRstatic intvkGetDisplayModePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, IntBuffer pPropertyCount, @Nullable VkDisplayModePropertiesKHR.Buffer pProperties) Query the set of mode properties supported by the display.static intvkGetDisplayPlaneCapabilitiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long mode, int planeIndex, VkDisplayPlaneCapabilitiesKHR pCapabilities) Query capabilities of a mode and plane combination.static intvkGetDisplayPlaneSupportedDisplaysKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int planeIndex, int[] pDisplayCount, long @Nullable [] pDisplays) Array version of:GetDisplayPlaneSupportedDisplaysKHRstatic intvkGetDisplayPlaneSupportedDisplaysKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int planeIndex, IntBuffer pDisplayCount, @Nullable LongBuffer pDisplays) Query the list of displays a plane supports.static intvkGetPhysicalDeviceDisplayPlanePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int[] pPropertyCount, @Nullable VkDisplayPlanePropertiesKHR.Buffer pProperties) Array version of:GetPhysicalDeviceDisplayPlanePropertiesKHRstatic intvkGetPhysicalDeviceDisplayPlanePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, IntBuffer pPropertyCount, @Nullable VkDisplayPlanePropertiesKHR.Buffer pProperties) Query the plane properties.static intvkGetPhysicalDeviceDisplayPropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int[] pPropertyCount, @Nullable VkDisplayPropertiesKHR.Buffer pProperties) Array version of:GetPhysicalDeviceDisplayPropertiesKHRstatic intvkGetPhysicalDeviceDisplayPropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, IntBuffer pPropertyCount, @Nullable VkDisplayPropertiesKHR.Buffer pProperties) Query information about the available displays.
-
Field Details
-
VK_KHR_DISPLAY_SPEC_VERSION
public static final int VK_KHR_DISPLAY_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_KHR_DISPLAY_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_OBJECT_TYPE_DISPLAY_KHR
public static final int VK_OBJECT_TYPE_DISPLAY_KHR- See Also:
-
VK_OBJECT_TYPE_DISPLAY_MODE_KHR
public static final int VK_OBJECT_TYPE_DISPLAY_MODE_KHR- See Also:
-
VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR
public static final int VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHRVkDisplayPlaneAlphaFlagBitsKHR - Alpha blending typeDescription
DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHRspecifies that the source image will be treated as opaque.DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRspecifies that a global alpha value must be specified that will be applied to all pixels in the source image.DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRspecifies that the alpha value will be determined by the alpha component of the source image’s pixels. If the source format contains no alpha values, no blending will be applied. The source alpha values are not premultiplied into the source image’s other color components.DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHRis equivalent toDISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR, except the source alpha values are assumed to be premultiplied into the source image’s other color components.
See Also
- See Also:
-
VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR
public static final int VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRVkDisplayPlaneAlphaFlagBitsKHR - Alpha blending typeDescription
DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHRspecifies that the source image will be treated as opaque.DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRspecifies that a global alpha value must be specified that will be applied to all pixels in the source image.DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRspecifies that the alpha value will be determined by the alpha component of the source image’s pixels. If the source format contains no alpha values, no blending will be applied. The source alpha values are not premultiplied into the source image’s other color components.DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHRis equivalent toDISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR, except the source alpha values are assumed to be premultiplied into the source image’s other color components.
See Also
- See Also:
-
VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR
public static final int VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRVkDisplayPlaneAlphaFlagBitsKHR - Alpha blending typeDescription
DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHRspecifies that the source image will be treated as opaque.DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRspecifies that a global alpha value must be specified that will be applied to all pixels in the source image.DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRspecifies that the alpha value will be determined by the alpha component of the source image’s pixels. If the source format contains no alpha values, no blending will be applied. The source alpha values are not premultiplied into the source image’s other color components.DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHRis equivalent toDISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR, except the source alpha values are assumed to be premultiplied into the source image’s other color components.
See Also
- See Also:
-
VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR
public static final int VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHRVkDisplayPlaneAlphaFlagBitsKHR - Alpha blending typeDescription
DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHRspecifies that the source image will be treated as opaque.DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRspecifies that a global alpha value must be specified that will be applied to all pixels in the source image.DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRspecifies that the alpha value will be determined by the alpha component of the source image’s pixels. If the source format contains no alpha values, no blending will be applied. The source alpha values are not premultiplied into the source image’s other color components.DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHRis equivalent toDISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR, except the source alpha values are assumed to be premultiplied into the source image’s other color components.
See Also
- See Also:
-
-
Method Details
-
nvkGetPhysicalDeviceDisplayPropertiesKHR
public static int nvkGetPhysicalDeviceDisplayPropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pPropertyCount, long pProperties) Unsafe version of:GetPhysicalDeviceDisplayPropertiesKHR- Parameters:
pPropertyCount- a pointer to an integer related to the number of display devices available or queried, as described below.
-
vkGetPhysicalDeviceDisplayPropertiesKHR
public static int vkGetPhysicalDeviceDisplayPropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, IntBuffer pPropertyCount, @Nullable VkDisplayPropertiesKHR.Buffer pProperties) Query information about the available displays.C Specification
Various functions are provided for enumerating the available display devices present on a Vulkan physical device. To query information about the available displays, call:
VkResult vkGetPhysicalDeviceDisplayPropertiesKHR( VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties);Description
If
pPropertiesisNULL, then the number of display devices available forphysicalDeviceis returned inpPropertyCount. Otherwise,pPropertyCountmust point to a variable set by the application to the number of elements in thepPropertiesarray, and on return the variable is overwritten with the number of structures actually written topProperties. If the value ofpPropertyCountis less than the number of display devices forphysicalDevice, at mostpPropertyCountstructures will be written, andINCOMPLETEwill be returned instead ofSUCCESS, to indicate that not all the available properties were returned.Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandlepPropertyCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not 0, andpPropertiesis notNULL,pPropertiesmust be a valid pointer to an array ofpPropertyCountVkDisplayPropertiesKHRstructures
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
physicalDevice- a physical device.pPropertyCount- a pointer to an integer related to the number of display devices available or queried, as described below.pProperties- eitherNULLor a pointer to an array ofVkDisplayPropertiesKHRstructures.
-
nvkGetPhysicalDeviceDisplayPlanePropertiesKHR
public static int nvkGetPhysicalDeviceDisplayPlanePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pPropertyCount, long pProperties) Unsafe version of:GetPhysicalDeviceDisplayPlanePropertiesKHR- Parameters:
pPropertyCount- a pointer to an integer related to the number of display planes available or queried, as described below.
-
vkGetPhysicalDeviceDisplayPlanePropertiesKHR
public static int vkGetPhysicalDeviceDisplayPlanePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, IntBuffer pPropertyCount, @Nullable VkDisplayPlanePropertiesKHR.Buffer pProperties) Query the plane properties.C Specification
Images are presented to individual planes on a display. Devices must support at least one plane on each display. Planes can be stacked and blended to composite multiple images on one display. Devices may support only a fixed stacking order and fixed mapping between planes and displays, or they may allow arbitrary application-specified stacking orders and mappings between planes and displays. To query the properties of device display planes, call:
VkResult vkGetPhysicalDeviceDisplayPlanePropertiesKHR( VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties);Description
If
pPropertiesisNULL, then the number of display planes available forphysicalDeviceis returned inpPropertyCount. Otherwise,pPropertyCountmust point to a variable set by the application to the number of elements in thepPropertiesarray, and on return the variable is overwritten with the number of structures actually written topProperties. If the value ofpPropertyCountis less than the number of display planes forphysicalDevice, at mostpPropertyCountstructures will be written.Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandlepPropertyCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not 0, andpPropertiesis notNULL,pPropertiesmust be a valid pointer to an array ofpPropertyCountVkDisplayPlanePropertiesKHRstructures
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
physicalDevice- a physical device.pPropertyCount- a pointer to an integer related to the number of display planes available or queried, as described below.pProperties- eitherNULLor a pointer to an array ofVkDisplayPlanePropertiesKHRstructures.
-
nvkGetDisplayPlaneSupportedDisplaysKHR
public static int nvkGetDisplayPlaneSupportedDisplaysKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int planeIndex, long pDisplayCount, long pDisplays) Unsafe version of:GetDisplayPlaneSupportedDisplaysKHR- Parameters:
pDisplayCount- a pointer to an integer related to the number of displays available or queried, as described below.
-
vkGetDisplayPlaneSupportedDisplaysKHR
public static int vkGetDisplayPlaneSupportedDisplaysKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int planeIndex, IntBuffer pDisplayCount, @Nullable LongBuffer pDisplays) Query the list of displays a plane supports.C Specification
To determine which displays a plane is usable with, call
VkResult vkGetDisplayPlaneSupportedDisplaysKHR( VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays);Description
If
pDisplaysisNULL, then the number of displays usable with the specifiedplaneIndexforphysicalDeviceis returned inpDisplayCount. Otherwise,pDisplayCountmust point to a variable set by the application to the number of elements in thepDisplaysarray, and on return the variable is overwritten with the number of handles actually written topDisplays. If the value ofpDisplayCountis less than the number of usable display-plane pairs forphysicalDevice, at mostpDisplayCounthandles will be written, andINCOMPLETEwill be returned instead ofSUCCESS, to indicate that not all the available pairs were returned.Valid Usage
planeIndexmust be less than the number of display planes supported by the device as determined by callingvkGetPhysicalDeviceDisplayPlanePropertiesKHR
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandlepDisplayCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pDisplayCountis not 0, andpDisplaysis notNULL,pDisplaysmust be a valid pointer to an array ofpDisplayCountVkDisplayKHRhandles
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
physicalDevice- a physical device.planeIndex- the plane which the application wishes to use, and must be in the range[0, physical device plane count - 1].pDisplayCount- a pointer to an integer related to the number of displays available or queried, as described below.pDisplays- eitherNULLor a pointer to an array ofVkDisplayKHRhandles.
-
nvkGetDisplayModePropertiesKHR
public static int nvkGetDisplayModePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, long pPropertyCount, long pProperties) Unsafe version of:GetDisplayModePropertiesKHR- Parameters:
pPropertyCount- a pointer to an integer related to the number of display modes available or queried, as described below.
-
vkGetDisplayModePropertiesKHR
public static int vkGetDisplayModePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, IntBuffer pPropertyCount, @Nullable VkDisplayModePropertiesKHR.Buffer pProperties) Query the set of mode properties supported by the display.C Specification
Each display has one or more supported modes associated with it by default. These built-in modes are queried by calling:
VkResult vkGetDisplayModePropertiesKHR( VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties);Description
If
pPropertiesisNULL, then the number of display modes available on the specifieddisplayforphysicalDeviceis returned inpPropertyCount. Otherwise,pPropertyCountmust point to a variable set by the application to the number of elements in thepPropertiesarray, and on return the variable is overwritten with the number of structures actually written topProperties. If the value ofpPropertyCountis less than the number of display modes forphysicalDevice, at mostpPropertyCountstructures will be written, andINCOMPLETEwill be returned instead ofSUCCESS, to indicate that not all the available display modes were returned.Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandledisplaymust be a validVkDisplayKHRhandlepPropertyCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not 0, andpPropertiesis notNULL,pPropertiesmust be a valid pointer to an array ofpPropertyCountVkDisplayModePropertiesKHRstructures displaymust have been created, allocated, or retrieved fromphysicalDevice
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
physicalDevice- the physical device associated withdisplay.display- the display to query.pPropertyCount- a pointer to an integer related to the number of display modes available or queried, as described below.pProperties- eitherNULLor a pointer to an array ofVkDisplayModePropertiesKHRstructures.
-
nvkCreateDisplayModeKHR
public static int nvkCreateDisplayModeKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, long pCreateInfo, long pAllocator, long pMode) Unsafe version of:CreateDisplayModeKHR -
vkCreateDisplayModeKHR
public static int vkCreateDisplayModeKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pMode) Create a display mode.C Specification
Additional modes may also be created by calling:
VkResult vkCreateDisplayModeKHR( VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode);Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandledisplaymust be a validVkDisplayKHRhandlepCreateInfomust be a valid pointer to a validVkDisplayModeCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pModemust be a valid pointer to aVkDisplayModeKHRhandledisplaymust have been created, allocated, or retrieved fromphysicalDevice
Host Synchronization
- Host access to
displaymust be externally synchronized
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
physicalDevice- the physical device associated withdisplay.display- the display to create an additional mode for.pCreateInfo- a pointer to aVkDisplayModeCreateInfoKHRstructure describing the new mode to create.pAllocator- the allocator used for host memory allocated for the display mode object when there is no more specific allocator available (see Memory Allocation).pMode- a pointer to aVkDisplayModeKHRhandle in which the mode created is returned.
-
nvkGetDisplayPlaneCapabilitiesKHR
public static int nvkGetDisplayPlaneCapabilitiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long mode, int planeIndex, long pCapabilities) Unsafe version of:GetDisplayPlaneCapabilitiesKHR -
vkGetDisplayPlaneCapabilitiesKHR
public static int vkGetDisplayPlaneCapabilitiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long mode, int planeIndex, VkDisplayPlaneCapabilitiesKHR pCapabilities) Query capabilities of a mode and plane combination.C Specification
Applications that wish to present directly to a display must select which layer, or “
plane” of the display they wish to target, and a mode to use with the display. Each display supports at least one plane. The capabilities of a given mode and plane combination are determined by calling:VkResult vkGetDisplayPlaneCapabilitiesKHR( VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities);Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandlemodemust be a validVkDisplayModeKHRhandlepCapabilitiesmust be a valid pointer to aVkDisplayPlaneCapabilitiesKHRstructuremodemust have been created, allocated, or retrieved fromphysicalDevice
Host Synchronization
- Host access to
modemust be externally synchronized
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
physicalDevice- the physical device associated with the display specified bymodemode- the display mode the application intends to program when using the specified plane. Note this parameter also implicitly specifies a display.planeIndex- the plane which the application intends to use with the display, and is less than the number of display planes supported by the device.pCapabilities- a pointer to aVkDisplayPlaneCapabilitiesKHRstructure in which the capabilities are returned.
-
nvkCreateDisplayPlaneSurfaceKHR
public static int nvkCreateDisplayPlaneSurfaceKHR(org.lwjgl.vulkan.VkInstance instance, long pCreateInfo, long pAllocator, long pSurface) Unsafe version of:CreateDisplayPlaneSurfaceKHR -
vkCreateDisplayPlaneSurfaceKHR
public static int vkCreateDisplayPlaneSurfaceKHR(org.lwjgl.vulkan.VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pSurface) Create aVkSurfaceKHRstructure representing a display plane and mode.C Specification
A complete display configuration includes a mode, one or more display planes and any parameters describing their behavior, and parameters describing some aspects of the images associated with those planes. Display surfaces describe the configuration of a single plane within a complete display configuration. To create a
VkSurfaceKHRobject for a display plane, call:VkResult vkCreateDisplayPlaneSurfaceKHR( VkInstance instance, const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);Valid Usage (Implicit)
instancemust be a validVkInstancehandlepCreateInfomust be a valid pointer to a validVkDisplaySurfaceCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pSurfacemust be a valid pointer to aVkSurfaceKHRhandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
instance- the instance corresponding to the physical device the targeted display is on.pCreateInfo- a pointer to aVkDisplaySurfaceCreateInfoKHRstructure specifying which mode, plane, and other parameters to use, as described below.pAllocator- the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurface- a pointer to aVkSurfaceKHRhandle in which the created surface is returned.
-
vkGetPhysicalDeviceDisplayPropertiesKHR
public static int vkGetPhysicalDeviceDisplayPropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int[] pPropertyCount, @Nullable VkDisplayPropertiesKHR.Buffer pProperties) Array version of:GetPhysicalDeviceDisplayPropertiesKHR -
vkGetPhysicalDeviceDisplayPlanePropertiesKHR
public static int vkGetPhysicalDeviceDisplayPlanePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int[] pPropertyCount, @Nullable VkDisplayPlanePropertiesKHR.Buffer pProperties) Array version of:GetPhysicalDeviceDisplayPlanePropertiesKHR -
vkGetDisplayPlaneSupportedDisplaysKHR
public static int vkGetDisplayPlaneSupportedDisplaysKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int planeIndex, int[] pDisplayCount, long @Nullable [] pDisplays) Array version of:GetDisplayPlaneSupportedDisplaysKHR -
vkGetDisplayModePropertiesKHR
public static int vkGetDisplayModePropertiesKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, int[] pPropertyCount, @Nullable VkDisplayModePropertiesKHR.Buffer pProperties) Array version of:GetDisplayModePropertiesKHR -
vkCreateDisplayModeKHR
public static int vkCreateDisplayModeKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pMode) Array version of:CreateDisplayModeKHR -
vkCreateDisplayPlaneSurfaceKHR
public static int vkCreateDisplayPlaneSurfaceKHR(org.lwjgl.vulkan.VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pSurface) Array version of:CreateDisplayPlaneSurfaceKHR
-