Class KHRDisplay
- java.lang.Object
-
- org.lwjgl.vulkan.KHRDisplay
-
public class KHRDisplay extends java.lang.ObjectThis extension provides the API to enumerate displays and available modes on a given device.
-
-
Field Summary
Fields Modifier and Type Field and Description static intVK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRA global alpha value must be specified that will be applied to all pixels in the source image.static intVK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHRThe source image will be treated as opaque.static intVK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRThe alpha value will be determined by the alpha channel of the source image’s pixels.static intVK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHRThis is equivalent toDISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRexcept the source alpha values are assumed to be premultiplied into the source image’s other color channels.static java.lang.StringVK_KHR_DISPLAY_EXTENSION_NAMEThe extension name.static intVK_KHR_DISPLAY_SPEC_VERSIONThe extension specification version.static intVK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR
VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHRVkStructureType
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intvkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pMode)Array version of:CreateDisplayModeKHRstatic intvkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pMode)Creates a display mode.static intvkCreateDisplayPlaneSurfaceKHR(VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)Array version of:CreateDisplayPlaneSurfaceKHRstatic intvkCreateDisplayPlaneSurfaceKHR(VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)Creates aVkSurfaceKHRstructure representing a display plane and mode.static intvkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, long display, int[] pPropertyCount, VkDisplayModePropertiesKHR.Buffer pProperties)Array version of:GetDisplayModePropertiesKHRstatic intvkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, long display, java.nio.IntBuffer pPropertyCount, VkDisplayModePropertiesKHR.Buffer pProperties)Gets the set of mode properties supported by the display.static intvkGetDisplayPlaneCapabilitiesKHR(VkPhysicalDevice physicalDevice, long mode, int planeIndex, VkDisplayPlaneCapabilitiesKHR pCapabilities)Gets the capabilities of a mode and plane combination.static intvkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, int planeIndex, int[] pDisplayCount, long[] pDisplays)Array version of:GetDisplayPlaneSupportedDisplaysKHRstatic intvkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, int planeIndex, java.nio.IntBuffer pDisplayCount, java.nio.LongBuffer pDisplays)Determines which displays a plane is usable with.static intvkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, int[] pPropertyCount, VkDisplayPlanePropertiesKHR.Buffer pProperties)Array version of:GetPhysicalDeviceDisplayPlanePropertiesKHRstatic intvkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, java.nio.IntBuffer pPropertyCount, VkDisplayPlanePropertiesKHR.Buffer pProperties)Queries the plane properties.static intvkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, int[] pPropertyCount, VkDisplayPropertiesKHR.Buffer pProperties)Array version of:GetPhysicalDeviceDisplayPropertiesKHRstatic intvkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, java.nio.IntBuffer pPropertyCount, VkDisplayPropertiesKHR.Buffer pProperties)Queries information about the available displays.
-
-
-
Field Detail
-
VK_KHR_DISPLAY_SPEC_VERSION
public static final int VK_KHR_DISPLAY_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_KHR_DISPLAY_EXTENSION_NAME
public static final java.lang.String VK_KHR_DISPLAY_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR
VkStructureType- See Also:
- Constant Field Values
-
VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR
VkStructureType- See Also:
- Constant Field Values
-
VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR
public static final int VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR
The source image will be treated as opaque.- See Also:
- Constant Field Values
-
VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR
public static final int VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR
A global alpha value must be specified that will be applied to all pixels in the source image.- See Also:
- Constant Field Values
-
VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR
public static final int VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR
The alpha value will be determined by the alpha channel 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 channels.- See Also:
- Constant Field Values
-
VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR
public static final int VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR
This is equivalent toDISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRexcept the source alpha values are assumed to be premultiplied into the source image’s other color channels.- See Also:
- Constant Field Values
-
-
Method Detail
-
vkGetPhysicalDeviceDisplayPropertiesKHR
public static int vkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, java.nio.IntBuffer pPropertyCount, VkDisplayPropertiesKHR.Buffer pProperties)
Queries information about the available displays.If
pPropertiesisNULL, then the number of display devices available forphysicalDeviceis returned inpPropertyCount. Otherwise,pPropertyCountmust point to a variable set by the user 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. IfpPropertyCountis smaller than the number of display devices available forphysicalDevice,INCOMPLETEwill be returned instead ofSUCCESSto indicate that not all the available values were returned.Valid Usage
physicalDevicemust be a validVkPhysicalDevicehandlepPropertyCountmust be a pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not 0, andpPropertiesis notNULL,pPropertiesmust be a pointer to an array ofpPropertyCountVkDisplayPropertiesKHRstructures
- Parameters:
physicalDevice- a physical devicepPropertyCount- a pointer to an integer related to the number of display devices available or queriedpProperties- eitherNULLor a pointer to an array ofVkDisplayPropertiesKHRstructures
-
vkGetPhysicalDeviceDisplayPlanePropertiesKHR
public static int vkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, java.nio.IntBuffer pPropertyCount, VkDisplayPlanePropertiesKHR.Buffer pProperties)
Queries the plane properties.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.
If
pPropertiesisNULL, then the number of display planes available forphysicalDeviceis returned inpPropertyCount. Otherwise,pPropertyCountmust point to a variable set by the user 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
physicalDevicemust be a validVkPhysicalDevicehandlepPropertyCountmust be a pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not 0, andpPropertiesis notNULL,pPropertiesmust be a pointer to an array ofpPropertyCountVkDisplayPlanePropertiesKHRstructures
- Parameters:
physicalDevice- a valid physical devicepPropertyCount- a pointer to an integer related to the number of display planes available or queriedpProperties- eitherNULLor a pointer to an array ofVkDisplayPlanePropertiesKHRstructures
-
vkGetDisplayPlaneSupportedDisplaysKHR
public static int vkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, int planeIndex, java.nio.IntBuffer pDisplayCount, java.nio.LongBuffer pDisplays)
Determines which displays a plane is usable with.If
pDisplaysisNULL, then the number of displays usable with the specifiedplaneIndexforphysicalDeviceis returned inpDisplayCount. Otherwise,pDisplayCountmust point to a variable set by the user to the number of elements in thepDisplaysarray, and on return the variable is overwritten with the number of structures actually written topDisplays. If the value ofpDisplayCountis less than the number of display planes forphysicalDevice, at mostpDisplayCountstructures will be written. IfpDisplayCountis smaller than the number of displays usable with the specifiedplaneIndexforphysicalDevice,INCOMPLETEwill be returned instead ofSUCCESSto indicate that not all the available values were returned.Valid Usage
physicalDevicemust be a validVkPhysicalDevicehandlepDisplayCountmust be a pointer to auint32_tvalue- If the value referenced by
pDisplayCountis not 0, andpDisplaysis notNULL,pDisplaysmust be a pointer to an array ofpDisplayCountVkDisplayKHRhandles planeIndexmust be less than the number of display planes supported by the device as determined by callingGetPhysicalDeviceDisplayPlanePropertiesKHR
- Parameters:
physicalDevice- a physical deviceplaneIndex- the plane which the application wishes to use, and must be in the range[0, physicaldeviceplanecount − 1]pDisplayCount- a pointer to an integer related to the number of display planes available or queriedpDisplays- eitherNULLor a pointer to an array ofVkDisplayKHRstructures
-
vkGetDisplayModePropertiesKHR
public static int vkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, long display, java.nio.IntBuffer pPropertyCount, VkDisplayModePropertiesKHR.Buffer pProperties)
Gets the set of mode properties supported by the display.If
pPropertiesisNULL, then the number of display modes available on the specified display forphysicalDeviceis returned inpPropertyCount. Otherwise,pPropertyCountmust point to a variable set by the user 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. IfpPropertyCountis smaller than the number of display modes available on the specifieddisplayforphysicalDevice,INCOMPLETEwill be returned instead ofSUCCESSto indicate that not all the available values were returned.Valid Usage
physicalDevicemust be a validVkPhysicalDevicehandledisplaymust be a validVkDisplayKHRhandlepPropertyCountmust be a pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not 0, andpPropertiesis notNULL,pPropertiesmust be a pointer to an array ofpPropertyCountVkDisplayModePropertiesKHRstructures
- Parameters:
physicalDevice- the physical device associated with the displaydisplay- a display present on the physical devicepPropertyCount- the number of entries in the array pointed to bypPropertiespProperties- a pointer to an array ofpPropertyCountVkDisplayModePropertiesKHRstructures
-
vkCreateDisplayModeKHR
public static int vkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pMode)
Creates a display mode.Valid Usage
physicalDevicemust be a validVkPhysicalDevicehandledisplaymust be a validVkDisplayKHRhandlepCreateInfomust be a pointer to a validVkDisplayModeCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a pointer to a validVkAllocationCallbacksstructure pModemust be a pointer to aVkDisplayModeKHRhandle
Host Synchronization
- Host access to
displaymust be externally synchronized
- Parameters:
physicalDevice- the physical device associated withdisplaydisplay- the display to create an additional modepCreateInfo- aVkDisplayModeCreateInfoKHRstructure describing the new mode to createpAllocator- controls host memory allocationpMode- returns the handle of the mode created
-
vkGetDisplayPlaneCapabilitiesKHR
public static int vkGetDisplayPlaneCapabilitiesKHR(VkPhysicalDevice physicalDevice, long mode, int planeIndex, VkDisplayPlaneCapabilitiesKHR pCapabilities)
Gets the capabilities of a mode and plane combination.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 this command.
Valid Usage
physicalDevicemust be a validVkPhysicalDevicehandlemodemust be a validVkDisplayModeKHRhandlepCapabilitiesmust be a pointer to aVkDisplayPlaneCapabilitiesKHRstructure
Host Synchronization
- Host access to
modemust be externally synchronized
- Parameters:
physicalDevice- the physical device associated with thedisplaymode- 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 devicepCapabilities- a pointer to aVkDisplayPlaneCapabilitiesKHRstruct
-
vkCreateDisplayPlaneSurfaceKHR
public static int vkCreateDisplayPlaneSurfaceKHR(VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)
Creates aVkSurfaceKHRstructure representing a display plane and mode.Valid Usage
instancemust be a validVkInstancehandlepCreateInfomust be a pointer to a validVkDisplaySurfaceCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a pointer to a validVkAllocationCallbacksstructure pSurfacemust be a pointer to aVkSurfaceKHRhandle
- Parameters:
instance- the instance corresponding to the physical device the targeted display is onpCreateInfo- a pointer to an instance of theVkDisplaySurfaceCreateInfoKHRstructure containing the parameters affecting the creation of the surface objectpAllocator- controls host memory allocationpSurface- points to aVkSurfaceKHRhandle in which the created surface is returned
-
vkGetPhysicalDeviceDisplayPropertiesKHR
public static int vkGetPhysicalDeviceDisplayPropertiesKHR(VkPhysicalDevice physicalDevice, int[] pPropertyCount, VkDisplayPropertiesKHR.Buffer pProperties)
Array version of:GetPhysicalDeviceDisplayPropertiesKHR
-
vkGetPhysicalDeviceDisplayPlanePropertiesKHR
public static int vkGetPhysicalDeviceDisplayPlanePropertiesKHR(VkPhysicalDevice physicalDevice, int[] pPropertyCount, VkDisplayPlanePropertiesKHR.Buffer pProperties)
Array version of:GetPhysicalDeviceDisplayPlanePropertiesKHR
-
vkGetDisplayPlaneSupportedDisplaysKHR
public static int vkGetDisplayPlaneSupportedDisplaysKHR(VkPhysicalDevice physicalDevice, int planeIndex, int[] pDisplayCount, long[] pDisplays)
Array version of:GetDisplayPlaneSupportedDisplaysKHR
-
vkGetDisplayModePropertiesKHR
public static int vkGetDisplayModePropertiesKHR(VkPhysicalDevice physicalDevice, long display, int[] pPropertyCount, VkDisplayModePropertiesKHR.Buffer pProperties)
Array version of:GetDisplayModePropertiesKHR
-
vkCreateDisplayModeKHR
public static int vkCreateDisplayModeKHR(VkPhysicalDevice physicalDevice, long display, VkDisplayModeCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pMode)
Array version of:CreateDisplayModeKHR
-
vkCreateDisplayPlaneSurfaceKHR
public static int vkCreateDisplayPlaneSurfaceKHR(VkInstance instance, VkDisplaySurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of:CreateDisplayPlaneSurfaceKHR
-
-