Class KHRGetSurfaceCapabilities2
- java.lang.Object
-
- org.lwjgl.vulkan.KHRGetSurfaceCapabilities2
-
public class KHRGetSurfaceCapabilities2 extends java.lang.ObjectThis extension provides new entry points to query device surface capabilities in a way that can be easily extended by other extensions, without introducing any further entry points. This extension can be considered theVK_KHR_surfaceequivalent of theVK_KHR_get_physical_device_properties2extension.- Name String
VK_KHR_get_surface_capabilities2- Extension Type
- Instance extension
- Registered Extension Number
- 120
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_surface
- Contact
- James Jones cubanismo
- Last Modified Date
- 2017-02-27
- IP Status
- No known IP claims.
- Contributors
- Ian Elliott, Google
- James Jones, NVIDIA
- Alon Or-bach, Samsung
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAMEThe extension name.static intVK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSIONThe extension specification version.static intVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR
VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR
VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHRExtendsVkStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnvkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceCapabilities)Unsafe version of:GetPhysicalDeviceSurfaceCapabilities2KHRstatic intnvkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceFormatCount, long pSurfaceFormats)Unsafe version of:GetPhysicalDeviceSurfaceFormats2KHRstatic intvkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, VkSurfaceCapabilities2KHR pSurfaceCapabilities)Reports capabilities of a surface on a physical device.static intvkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, int[] pSurfaceFormatCount, VkSurfaceFormat2KHR.Buffer pSurfaceFormats)Array version of:GetPhysicalDeviceSurfaceFormats2KHRstatic intvkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, java.nio.IntBuffer pSurfaceFormatCount, VkSurfaceFormat2KHR.Buffer pSurfaceFormats)Query color formats supported by surface.
-
-
-
Field Detail
-
VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION
The extension specification version.
-
VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME
The extension name.
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR, VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR, VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR
ExtendsVkStructureType.Enum values:
-
-
Method Detail
-
nvkGetPhysicalDeviceSurfaceCapabilities2KHR
public static int nvkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceCapabilities)
Unsafe version of:GetPhysicalDeviceSurfaceCapabilities2KHR
-
vkGetPhysicalDeviceSurfaceCapabilities2KHR
public static int vkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, VkSurfaceCapabilities2KHR pSurfaceCapabilities)
Reports capabilities of a surface on a physical device.C Specification
To query the basic capabilities of a surface defined by the core or extensions, call:
VkResult vkGetPhysicalDeviceSurfaceCapabilities2KHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, VkSurfaceCapabilities2KHR* pSurfaceCapabilities);Description
vkGetPhysicalDeviceSurfaceCapabilities2KHRbehaves similarly toGetPhysicalDeviceSurfaceCapabilitiesKHR, with the ability to specify extended inputs via chained input structures, and to return extended information via chained output structures.Valid Usage
- If an instance of
VkSurfaceCapabilitiesFullScreenExclusiveEXTis included in thepNextchain ofpSurfaceCapabilities, an instance ofVkSurfaceFullScreenExclusiveWin32InfoEXTmust be included in thepNextchain ofpSurfaceInfo.
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandlepSurfaceInfomust be a valid pointer to a validVkPhysicalDeviceSurfaceInfo2KHRstructurepSurfaceCapabilitiesmust be a valid pointer to aVkSurfaceCapabilities2KHRstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
physicalDevice- the physical device that will be associated with the swapchain to be created, as described forCreateSwapchainKHR.pSurfaceInfo- points to an instance of theVkPhysicalDeviceSurfaceInfo2KHRstructure, describing the surface and other fixed parameters that would be consumed byCreateSwapchainKHR.pSurfaceCapabilities- points to an instance of theVkSurfaceCapabilities2KHRstructure in which the capabilities are returned.
- If an instance of
-
nvkGetPhysicalDeviceSurfaceFormats2KHR
public static int nvkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceFormatCount, long pSurfaceFormats)
Unsafe version of:GetPhysicalDeviceSurfaceFormats2KHR- Parameters:
pSurfaceFormatCount- a pointer to an integer related to the number of format tuples available or queried, as described below.
-
vkGetPhysicalDeviceSurfaceFormats2KHR
public static int vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, java.nio.IntBuffer pSurfaceFormatCount, @Nullable VkSurfaceFormat2KHR.Buffer pSurfaceFormats)
Query color formats supported by surface.C Specification
To query the supported swapchain format tuples for a surface, call:
VkResult vkGetPhysicalDeviceSurfaceFormats2KHR( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, uint32_t* pSurfaceFormatCount, VkSurfaceFormat2KHR* pSurfaceFormats);Description
If
pSurfaceFormatsisNULL, then the number of format tuples supported for the givensurfaceis returned inpSurfaceFormatCount. Otherwise,pSurfaceFormatCountmust point to a variable set by the user to the number of elements in thepSurfaceFormatsarray, and on return the variable is overwritten with the number of structures actually written topSurfaceFormats. If the value ofpSurfaceFormatCountis less than the number of format tuples supported, at mostpSurfaceFormatCountstructures will be written. IfpSurfaceFormatCountis smaller than the number of format tuples supported for the surface parameters described inpSurfaceInfo,INCOMPLETEwill be returned instead ofSUCCESSto indicate that not all the available values were returned. The number of format tuples supported must be greater than or equal to 1.Valid Usage
pSurfaceInfo::surfacemust be supported byphysicalDevice, as reported byGetPhysicalDeviceSurfaceSupportKHRor an equivalent platform-specific mechanism.
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandlepSurfaceInfomust be a valid pointer to a validVkPhysicalDeviceSurfaceInfo2KHRstructurepSurfaceFormatCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pSurfaceFormatCountis not 0, andpSurfaceFormatsis notNULL,pSurfaceFormatsmust be a valid pointer to an array ofpSurfaceFormatCountVkSurfaceFormat2KHRstructures
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
physicalDevice- the physical device that will be associated with the swapchain to be created, as described forCreateSwapchainKHR.pSurfaceInfo- points to an instance of theVkPhysicalDeviceSurfaceInfo2KHRstructure, describing the surface and other fixed parameters that would be consumed byCreateSwapchainKHR.pSurfaceFormatCount- a pointer to an integer related to the number of format tuples available or queried, as described below.pSurfaceFormats- eitherNULLor a pointer to an array ofVkSurfaceFormat2KHRstructures.
-
vkGetPhysicalDeviceSurfaceFormats2KHR
public static int vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, int[] pSurfaceFormatCount, @Nullable VkSurfaceFormat2KHR.Buffer pSurfaceFormats)
Array version of:GetPhysicalDeviceSurfaceFormats2KHR
-
-