Class KHRGetSurfaceCapabilities2
VK_KHR_surface equivalent of the VK_KHR_get_physical_device_properties2 extension.
- Name String
VK_KHR_get_surface_capabilities2- Extension Type
- Instance extension
- Registered Extension Number
- 120
- Revision
- 1
- Extension and Version Dependencies
VK_KHR_surface- Contact
- James Jones cubanismo
Other Extension Metadata
- 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
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkGetPhysicalDeviceSurfaceCapabilities2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceCapabilities) Unsafe version of:GetPhysicalDeviceSurfaceCapabilities2KHRstatic intnvkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceFormatCount, long pSurfaceFormats) Unsafe version of:GetPhysicalDeviceSurfaceFormats2KHRstatic intvkGetPhysicalDeviceSurfaceCapabilities2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, VkSurfaceCapabilities2KHR pSurfaceCapabilities) Reports capabilities of a surface on a physical device.static intvkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, int[] pSurfaceFormatCount, @Nullable VkSurfaceFormat2KHR.Buffer pSurfaceFormats) Array version of:GetPhysicalDeviceSurfaceFormats2KHRstatic intvkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, IntBuffer pSurfaceFormatCount, @Nullable VkSurfaceFormat2KHR.Buffer pSurfaceFormats) Query color formats supported by surface.
-
Field Details
-
VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION
public static final int VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR
public static final int VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR
public static final int VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHRExtendsVkStructureType.Enum values:
- See Also:
-
-
Method Details
-
nvkGetPhysicalDeviceSurfaceCapabilities2KHR
public static int nvkGetPhysicalDeviceSurfaceCapabilities2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceCapabilities) Unsafe version of:GetPhysicalDeviceSurfaceCapabilities2KHR -
vkGetPhysicalDeviceSurfaceCapabilities2KHR
public static int vkGetPhysicalDeviceSurfaceCapabilities2KHR(org.lwjgl.vulkan.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 the
VK_GOOGLE_surfaceless_queryextension is not enabled,pSurfaceInfo→surfacemust be a validVkSurfaceKHRhandle - If
pSurfaceInfo→surfaceis notNULL_HANDLE,pSurfaceInfo→surfacemust be supported byphysicalDevice, as reported byGetPhysicalDeviceSurfaceSupportKHRor an equivalent platform-specific mechanism
- If a
VkSurfaceCapabilitiesFullScreenExclusiveEXTstructure is included in thepNextchain ofpSurfaceCapabilities, aVkSurfaceFullScreenExclusiveWin32InfoEXTstructure must be included in thepNextchain ofpSurfaceInfo - If a
VkSurfacePresentModeCompatibilityEXTstructure is included in thepNextchain ofpSurfaceCapabilities, aVkSurfacePresentModeEXTstructure must be included in thepNextchain ofpSurfaceInfo - If a
VkSurfacePresentScalingCapabilitiesEXTstructure is included in thepNextchain ofpSurfaceCapabilities, aVkSurfacePresentModeEXTstructure must be included in thepNextchain ofpSurfaceInfo - If a
VkSurfacePresentModeCompatibilityEXTstructure is included in thepNextchain ofpSurfaceCapabilities,pSurfaceInfo→surfacemust be a validVkSurfaceKHRhandle - If a
VkSurfacePresentScalingCapabilitiesEXTstructure is included in thepNextchain ofpSurfaceCapabilities,pSurfaceInfo→surfacemust be a validVkSurfaceKHRhandle
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- a pointer to aVkPhysicalDeviceSurfaceInfo2KHRstructure describing the surface and other fixed parameters that would be consumed byCreateSwapchainKHR.pSurfaceCapabilities- a pointer to aVkSurfaceCapabilities2KHRstructure in which the capabilities are returned.
- If the
-
nvkGetPhysicalDeviceSurfaceFormats2KHR
public static int nvkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.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(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, 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
GetPhysicalDeviceSurfaceFormats2KHRbehaves similarly toGetPhysicalDeviceSurfaceFormatsKHR, with the ability to be extended viapNextchains.If
pSurfaceFormatsisNULL, then the number of format tuples supported for the givensurfaceis returned inpSurfaceFormatCount. Otherwise,pSurfaceFormatCountmust point to a variable set by the application 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, andINCOMPLETEwill be returned instead ofSUCCESS, to indicate that not all the available values were returned.Valid Usage
- If the
VK_GOOGLE_surfaceless_queryextension is not enabled,pSurfaceInfo→surfacemust be a validVkSurfaceKHRhandle - If
pSurfaceInfo→surfaceis notNULL_HANDLE,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- a pointer to aVkPhysicalDeviceSurfaceInfo2KHRstructure 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.
- If the
-
vkGetPhysicalDeviceSurfaceFormats2KHR
public static int vkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, int[] pSurfaceFormatCount, @Nullable VkSurfaceFormat2KHR.Buffer pSurfaceFormats) Array version of:GetPhysicalDeviceSurfaceFormats2KHR
-