Class KHRGetSurfaceCapabilities2
VK_KHR_surface
equivalent of the VK_KHR_get_physical_device_properties2
extension.
VK_KHR_get_surface_capabilities2
- 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
Modifier and TypeFieldDescriptionstatic final String
The extension name.static final int
The extension specification version.static final int
ExtendsVkStructureType
.static final int
ExtendsVkStructureType
.static final int
ExtendsVkStructureType
. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
nvkGetPhysicalDeviceSurfaceCapabilities2KHR
(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceCapabilities) Unsafe version of:GetPhysicalDeviceSurfaceCapabilities2KHR
static int
nvkGetPhysicalDeviceSurfaceFormats2KHR
(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceFormatCount, long pSurfaceFormats) Unsafe version of:GetPhysicalDeviceSurfaceFormats2KHR
static int
vkGetPhysicalDeviceSurfaceCapabilities2KHR
(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, VkSurfaceCapabilities2KHR pSurfaceCapabilities) Reports capabilities of a surface on a physical device.static int
vkGetPhysicalDeviceSurfaceFormats2KHR
(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, int[] pSurfaceFormatCount, VkSurfaceFormat2KHR.Buffer pSurfaceFormats) Array version of:GetPhysicalDeviceSurfaceFormats2KHR
static int
vkGetPhysicalDeviceSurfaceFormats2KHR
(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, IntBuffer pSurfaceFormatCount, 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(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
vkGetPhysicalDeviceSurfaceCapabilities2KHR
behaves 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_query
extension is not enabled,pSurfaceInfo→surface
must be a validVkSurfaceKHR
handle - If
pSurfaceInfo→surface
is notNULL_HANDLE
, it must be supported byphysicalDevice
, as reported byGetPhysicalDeviceSurfaceSupportKHR
or an equivalent platform-specific mechanism
- If a
VkSurfaceCapabilitiesFullScreenExclusiveEXT
structure is included in thepNext
chain ofpSurfaceCapabilities
, aVkSurfaceFullScreenExclusiveWin32InfoEXT
structure must be included in thepNext
chain ofpSurfaceInfo
- If a
VkSurfacePresentModeCompatibilityEXT
structure is included in thepNext
chain ofpSurfaceCapabilities
, aVkSurfacePresentModeEXT
structure must be included in thepNext
chain ofpSurfaceInfo
- If a
VkSurfacePresentScalingCapabilitiesEXT
structure is included in thepNext
chain ofpSurfaceCapabilities
, aVkSurfacePresentModeEXT
structure must be included in thepNext
chain ofpSurfaceInfo
- If a
VkSurfacePresentModeCompatibilityEXT
structure is included in thepNext
chain ofpSurfaceCapabilities
,pSurfaceInfo→surface
must be a validVkSurfaceKHR
handle - If a
VkSurfacePresentScalingCapabilitiesEXT
structure is included in thepNext
chain ofpSurfaceCapabilities
,pSurfaceInfo→surface
must be a validVkSurfaceKHR
handle
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handlepSurfaceInfo
must be a valid pointer to a validVkPhysicalDeviceSurfaceInfo2KHR
structurepSurfaceCapabilities
must be a valid pointer to aVkSurfaceCapabilities2KHR
structure
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 aVkPhysicalDeviceSurfaceInfo2KHR
structure describing the surface and other fixed parameters that would be consumed byCreateSwapchainKHR
.pSurfaceCapabilities
- a pointer to aVkSurfaceCapabilities2KHR
structure in which the capabilities are returned.
- If the
-
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, 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
GetPhysicalDeviceSurfaceFormats2KHR
behaves similarly toGetPhysicalDeviceSurfaceFormatsKHR
, with the ability to be extended viapNext
chains.If
pSurfaceFormats
isNULL
, then the number of format tuples supported for the givensurface
is returned inpSurfaceFormatCount
. Otherwise,pSurfaceFormatCount
must point to a variable set by the user to the number of elements in thepSurfaceFormats
array, and on return the variable is overwritten with the number of structures actually written topSurfaceFormats
. If the value ofpSurfaceFormatCount
is less than the number of format tuples supported, at mostpSurfaceFormatCount
structures will be written, andINCOMPLETE
will be returned instead ofSUCCESS
, to indicate that not all the available values were returned.Valid Usage
- If the
VK_GOOGLE_surfaceless_query
extension is not enabled,pSurfaceInfo→surface
must be a validVkSurfaceKHR
handle - If
pSurfaceInfo→surface
is notNULL_HANDLE
, it must be supported byphysicalDevice
, as reported byGetPhysicalDeviceSurfaceSupportKHR
or an equivalent platform-specific mechanism
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handlepSurfaceInfo
must be a valid pointer to a validVkPhysicalDeviceSurfaceInfo2KHR
structurepSurfaceFormatCount
must be a valid pointer to auint32_t
value- If the value referenced by
pSurfaceFormatCount
is not 0, andpSurfaceFormats
is notNULL
,pSurfaceFormats
must be a valid pointer to an array ofpSurfaceFormatCount
VkSurfaceFormat2KHR
structures
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 aVkPhysicalDeviceSurfaceInfo2KHR
structure 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
- eitherNULL
or a pointer to an array ofVkSurfaceFormat2KHR
structures.
- If the
-
vkGetPhysicalDeviceSurfaceFormats2KHR
public static int vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, int[] pSurfaceFormatCount, @Nullable VkSurfaceFormat2KHR.Buffer pSurfaceFormats) Array version of:GetPhysicalDeviceSurfaceFormats2KHR
-