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/master/cube/cube.c).
VK_KHR_displayVK_KHR_surface| Modifier and Type | Field and Description |
|---|---|
| public static final int | VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR
VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type Description
|
| public static final int | VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR
VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type Description
|
| public static final int | VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR
VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type Description
|
| public static final int | VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR
VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type Description
|
| public static final String | VK_KHR_DISPLAY_EXTENSION_NAME
The extension name. |
| public static final int | VK_KHR_DISPLAY_SPEC_VERSION
The extension specification version. |
| public static final int | VK_OBJECT_TYPE_DISPLAY_KHR
Extends |
| public static final int | VK_OBJECT_TYPE_DISPLAY_MODE_KHR
Extends |
| public static final int | VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR
Extends |
| public static final int | VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nvkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, long display, long pCreateInfo, long pAllocator, long pMode)
Unsafe version of: |
| public static int | nvkCreateDisplayPlaneSurfaceKHR(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of: |
| public static int | nvkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, long display, long
a pointer to an integer related to the number of display modes available or queried, as described below. pPropertyCount, long pProperties)Unsafe version of: |
| public static int | nvkGetDisplayPlaneCapabilitiesKHR(VkPhysicalDevice physicalDevice, long mode, int planeIndex, long pCapabilities)
Unsafe version of: |
| public static int | nvkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, int planeIndex, long
a pointer to an integer related to the number of displays available or queried, as described below. pDisplayCount, long pDisplays)Unsafe version of: |
| public static int | nvkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, long
a pointer to an integer related to the number of display planes available or queried, as described below. pPropertyCount, long pProperties)Unsafe version of: |
| public static int | nvkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, long
a pointer to an integer related to the number of display devices available or queried, as described below. pPropertyCount, long pProperties)Unsafe version of: |
| public static int | vkCreateDisplayModeKHR(VkPhysicalDevice
the physical device associated with physicalDevice, long display.the display to create an additional mode for. display, VkDisplayModeCreateInfoKHR a pointer to a pCreateInfo, VkAllocationCallbacks VkDisplayModeCreateInfoKHR structure describing the new mode to create.the allocator used for host memory allocated for the display mode object when there is no more specific allocator available (see Memory Allocation). pAllocator, LongBuffer a pointer to a pMode)VkDisplayModeKHR handle in which the mode created is returned.Create a display mode. |
| public static int | vkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pMode)
Array version of: |
| public static int | vkCreateDisplayPlaneSurfaceKHR(VkInstance
the instance corresponding to the physical device the targeted display is on. instance, VkDisplaySurfaceCreateInfoKHR a pointer to a pCreateInfo, VkAllocationCallbacks VkDisplaySurfaceCreateInfoKHR structure specifying which mode, plane, and other parameters to use, as described below.the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation). pAllocator, LongBuffer a pointer to a pSurface)VkSurfaceKHR handle in which the created surface is returned.Create a |
| public static int | vkCreateDisplayPlaneSurfaceKHR(VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of: |
| public static int | vkGetDisplayModePropertiesKHR(VkPhysicalDevice
the physical device associated with physicalDevice, long display.the display to query. display, IntBuffer a pointer to an integer related to the number of display modes available or queried, as described below. pPropertyCount, VkDisplayModePropertiesKHR.either pPropertiesNULL or a pointer to an array of VkDisplayModePropertiesKHR structures.Query the set of mode properties supported by the display. |
| public static int | vkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, long display, int[] pPropertyCount, VkDisplayModePropertiesKHR.
Array version of: |
| public static int | vkGetDisplayPlaneCapabilitiesKHR(VkPhysicalDevice
the physical device associated with the display specified by physicalDevice, long modethe display mode the application intends to program when using the specified plane. Note this parameter also implicitly specifies a display. mode, int the plane which the application intends to use with the display, and is less than the number of display planes supported by the device. planeIndex, VkDisplayPlaneCapabilitiesKHR a pointer to a pCapabilities)VkDisplayPlaneCapabilitiesKHR structure in which the capabilities are returned.Query capabilities of a mode and plane combination. |
| public static int | vkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice
a physical device. physicalDevice, int the plane which the application wishes to use, and must be in the range planeIndex, IntBuffer [0, physical device plane count - 1].a pointer to an integer related to the number of displays available or queried, as described below. pDisplayCount, LongBuffer either pDisplays)NULL or a pointer to an array of VkDisplayKHR handles.Query the list of displays a plane supports. |
| public static int | vkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, int planeIndex, int[] pDisplayCount, long[] pDisplays)
Array version of: |
| public static int | vkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice
a physical device. physicalDevice, IntBuffer a pointer to an integer related to the number of display planes available or queried, as described below. pPropertyCount, VkDisplayPlanePropertiesKHR.either pPropertiesNULL or a pointer to an array of VkDisplayPlanePropertiesKHR structures.Query the plane properties. |
| public static int | vkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, int[] pPropertyCount, VkDisplayPlanePropertiesKHR.
Array version of: |
| public static int | vkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice
a physical device. physicalDevice, IntBuffer a pointer to an integer related to the number of display devices available or queried, as described below. pPropertyCount, VkDisplayPropertiesKHR.either pPropertiesNULL or a pointer to an array of VkDisplayPropertiesKHR structures.Query information about the available displays. |
| public static int | vkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, int[] pPropertyCount, VkDisplayPropertiesKHR.
Array version of: |
| VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR | back to summary |
|---|---|
| public static final int VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type Description
See Also | |
| VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR | back to summary |
|---|---|
| public static final int VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type Description
See Also | |
| VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR | back to summary |
|---|---|
| public static final int VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type Description
See Also | |
| VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR | back to summary |
|---|---|
| public static final int VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR VkDisplayPlaneAlphaFlagBitsKHR - Alpha blending type Description
See Also | |
| VK_KHR_DISPLAY_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_KHR_DISPLAY_EXTENSION_NAME The extension name. | |
| VK_KHR_DISPLAY_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_KHR_DISPLAY_SPEC_VERSION The extension specification version. | |
| VK_OBJECT_TYPE_DISPLAY_KHR | back to summary |
|---|---|
| public static final int VK_OBJECT_TYPE_DISPLAY_KHR Extends Enum values: | |
| VK_OBJECT_TYPE_DISPLAY_MODE_KHR | back to summary |
|---|---|
| public static final int VK_OBJECT_TYPE_DISPLAY_MODE_KHR Extends Enum values: | |
| VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR Extends Enum values: | |
| VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR Extends Enum values: | |
| KHRDisplay | back to summary |
|---|---|
| protected KHRDisplay() | |
| nvkCreateDisplayModeKHR | back to summary |
|---|---|
| public static int nvkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, long display, long pCreateInfo, long pAllocator, long pMode) Unsafe version of: | |
| nvkCreateDisplayPlaneSurfaceKHR | back to summary |
|---|---|
| public static int nvkCreateDisplayPlaneSurfaceKHR(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface) Unsafe version of: | |
| nvkGetDisplayModePropertiesKHR | back to summary |
|---|---|
| public static int nvkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, long display, long pPropertyCount, long pProperties) Unsafe version of:
| |
| nvkGetDisplayPlaneCapabilitiesKHR | back to summary |
|---|---|
| public static int nvkGetDisplayPlaneCapabilitiesKHR(VkPhysicalDevice physicalDevice, long mode, int planeIndex, long pCapabilities) Unsafe version of: | |
| nvkGetDisplayPlaneSupportedDisplaysKHR | back to summary |
|---|---|
| public static int nvkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, int planeIndex, long pDisplayCount, long pDisplays) Unsafe version of:
| |
| nvkGetPhysicalDeviceDisplayPlanePropertiesKHR | back to summary |
|---|---|
| public static int nvkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, long pPropertyCount, long pProperties) Unsafe version of:
| |
| nvkGetPhysicalDeviceDisplayPropertiesKHR | back to summary |
|---|---|
| public static int nvkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, long pPropertyCount, long pProperties) Unsafe version of:
| |
| vkCreateDisplayModeKHR | back to summary |
|---|---|
| public static int vkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, LongBuffer pMode) Create a display mode. C SpecificationAdditional modes may also be created by calling:
Valid Usage (Implicit)
Host Synchronization
Return Codes
See Also
| |
| vkCreateDisplayModeKHR | back to summary |
|---|---|
| public static int vkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pMode) Array version of:
| |
| vkCreateDisplayPlaneSurfaceKHR | back to summary |
|---|---|
| public static int vkCreateDisplayPlaneSurfaceKHR(VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, LongBuffer pSurface) Create a C SpecificationA 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
Valid Usage (Implicit)
Return Codes
See Also
| |
| vkCreateDisplayPlaneSurfaceKHR | back to summary |
|---|---|
| public static int vkCreateDisplayPlaneSurfaceKHR(VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface) Array version of:
| |
| vkGetDisplayModePropertiesKHR | back to summary |
|---|---|
| public static int vkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, long display, IntBuffer pPropertyCount, VkDisplayModePropertiesKHR. Query the set of mode properties supported by the display. C SpecificationEach display has one or more supported modes associated with it by default. These built-in modes are queried by calling:
DescriptionIf Valid Usage (Implicit)
Return Codes
See Also
| |
| vkGetDisplayModePropertiesKHR | back to summary |
|---|---|
| public static int vkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, long display, int[] pPropertyCount, VkDisplayModePropertiesKHR. Array version of:
| |
| vkGetDisplayPlaneCapabilitiesKHR | back to summary |
|---|---|
| public static int vkGetDisplayPlaneCapabilitiesKHR(VkPhysicalDevice physicalDevice, long mode, int planeIndex, VkDisplayPlaneCapabilitiesKHR pCapabilities) Query capabilities of a mode and plane combination. C SpecificationApplications that wish to present directly to a display must select which layer, or “
Valid Usage (Implicit)
Host Synchronization
Return Codes
See Also
| |
| vkGetDisplayPlaneSupportedDisplaysKHR | back to summary |
|---|---|
| public static int vkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, int planeIndex, IntBuffer pDisplayCount, LongBuffer pDisplays) Query the list of displays a plane supports. C SpecificationTo determine which displays a plane is usable with, call
DescriptionIf Valid Usage
Valid Usage (Implicit)
Return Codes
| |
| vkGetDisplayPlaneSupportedDisplaysKHR | back to summary |
|---|---|
| public static int vkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, int planeIndex, int[] pDisplayCount, long[] pDisplays) Array version of:
| |
| vkGetPhysicalDeviceDisplayPlanePropertiesKHR | back to summary |
|---|---|
| public static int vkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, IntBuffer pPropertyCount, VkDisplayPlanePropertiesKHR. Query the plane properties. C SpecificationImages 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:
DescriptionIf Valid Usage (Implicit)
Return Codes
See Also
| |
| vkGetPhysicalDeviceDisplayPlanePropertiesKHR | back to summary |
|---|---|
| public static int vkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, int[] pPropertyCount, VkDisplayPlanePropertiesKHR. Array version of:
| |
| vkGetPhysicalDeviceDisplayPropertiesKHR | back to summary |
|---|---|
| public static int vkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, IntBuffer pPropertyCount, VkDisplayPropertiesKHR. Query information about the available displays. C SpecificationVarious functions are provided for enumerating the available display devices present on a Vulkan physical device. To query information about the available displays, call:
DescriptionIf Valid Usage (Implicit)
Return Codes
See Also
| |
| vkGetPhysicalDeviceDisplayPropertiesKHR | back to summary |
|---|---|
| public static int vkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, int[] pPropertyCount, VkDisplayPropertiesKHR. Array version of:
| |