Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class KHRGetSurfaceCapabilities2

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

This extension provides new queries for device surface capabilities that can be easily extended by other extensions, without introducing any further queries. This extension can be considered the 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
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 TypeField and Description
public static final String
public static final int
VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION

The extension specification version.

public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nvkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceCapabilities)

Unsafe version of: GetPhysicalDeviceSurfaceCapabilities2KHR

public static int
nvkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long
a pointer to an integer related to the number of format tuples available or queried, as described below.
pSurfaceFormatCount
,
long pSurfaceFormats)

Unsafe version of: GetPhysicalDeviceSurfaceFormats2KHR

public static int
vkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice
the physical device that will be associated with the swapchain to be created, as described for CreateSwapchainKHR.
physicalDevice
,
VkPhysicalDeviceSurfaceInfo2KHR
a pointer to a VkPhysicalDeviceSurfaceInfo2KHR structure describing the surface and other fixed parameters that would be consumed by CreateSwapchainKHR.
pSurfaceInfo
,
VkSurfaceCapabilities2KHR
a pointer to a VkSurfaceCapabilities2KHR structure in which the capabilities are returned.
pSurfaceCapabilities
)

Reports capabilities of a surface on a physical device.

public static int
vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice
the physical device that will be associated with the swapchain to be created, as described for CreateSwapchainKHR.
physicalDevice
,
VkPhysicalDeviceSurfaceInfo2KHR
a pointer to a VkPhysicalDeviceSurfaceInfo2KHR structure describing the surface and other fixed parameters that would be consumed by CreateSwapchainKHR.
pSurfaceInfo
,
IntBuffer
a pointer to an integer related to the number of format tuples available or queried, as described below.
pSurfaceFormatCount
,
VkSurfaceFormat2KHR.Buffer
either NULL or a pointer to an array of VkSurfaceFormat2KHR structures.
pSurfaceFormats
)

Query color formats supported by surface.

public static int
vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, int[] pSurfaceFormatCount, VkSurfaceFormat2KHR.Buffer pSurfaceFormats)

Array version of: GetPhysicalDeviceSurfaceFormats2KHR

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAMEback to summary
public static final String VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME

The extension name.

VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSIONback to summary
public static final int VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION

The extension specification version.

VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR

Extends VkStructureType.

Enum values:

Constructor Detail

KHRGetSurfaceCapabilities2back to summary
protected KHRGetSurfaceCapabilities2()

Method Detail

nvkGetPhysicalDeviceSurfaceCapabilities2KHRback to summary
public static int nvkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceCapabilities)

Unsafe version of: GetPhysicalDeviceSurfaceCapabilities2KHR

nvkGetPhysicalDeviceSurfaceFormats2KHRback to summary
public static int nvkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, long pSurfaceInfo, long pSurfaceFormatCount, long pSurfaceFormats)

Unsafe version of: GetPhysicalDeviceSurfaceFormats2KHR

Parameters
pSurfaceFormatCount:long

a pointer to an integer related to the number of format tuples available or queried, as described below.

vkGetPhysicalDeviceSurfaceCapabilities2KHRback to summary
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 to GetPhysicalDeviceSurfaceCapabilitiesKHR, with the ability to specify extended inputs via chained input structures, and to return extended information via chained output structures.

Valid Usage
Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
See Also

VkPhysicalDeviceSurfaceInfo2KHR, VkSurfaceCapabilities2KHR

Parameters
physicalDevice:VkPhysicalDevice

the physical device that will be associated with the swapchain to be created, as described for CreateSwapchainKHR.

pSurfaceInfo:VkPhysicalDeviceSurfaceInfo2KHR

a pointer to a VkPhysicalDeviceSurfaceInfo2KHR structure describing the surface and other fixed parameters that would be consumed by CreateSwapchainKHR.

pSurfaceCapabilities:VkSurfaceCapabilities2KHR

a pointer to a VkSurfaceCapabilities2KHR structure in which the capabilities are returned.

Annotations
@NativeType:VkResult
vkGetPhysicalDeviceSurfaceFormats2KHRback to summary
public static int vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, IntBuffer pSurfaceFormatCount, 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 to GetPhysicalDeviceSurfaceFormatsKHR, with the ability to be extended via pNext chains.

If pSurfaceFormats is NULL, then the number of format tuples supported for the given surface is returned in pSurfaceFormatCount. Otherwise, pSurfaceFormatCount must point to a variable set by the user to the number of elements in the pSurfaceFormats array, and on return the variable is overwritten with the number of structures actually written to pSurfaceFormats. If the value of pSurfaceFormatCount is less than the number of format tuples supported, at most pSurfaceFormatCount structures will be written, and INCOMPLETE will be returned instead of SUCCESS, to indicate that not all the available values were returned.

Valid Usage
Valid Usage (Implicit)
  • physicalDevice must be a valid VkPhysicalDevice handle
  • pSurfaceInfo must be a valid pointer to a valid VkPhysicalDeviceSurfaceInfo2KHR structure
  • pSurfaceFormatCount must be a valid pointer to a uint32_t value
  • If the value referenced by pSurfaceFormatCount is not 0, and pSurfaceFormats is not NULL, pSurfaceFormats must be a valid pointer to an array of pSurfaceFormatCount VkSurfaceFormat2KHR structures
Return Codes
On success, this command returns
On failure, this command returns
See Also

VkPhysicalDeviceSurfaceInfo2KHR, VkSurfaceFormat2KHR

Parameters
physicalDevice:VkPhysicalDevice

the physical device that will be associated with the swapchain to be created, as described for CreateSwapchainKHR.

pSurfaceInfo:VkPhysicalDeviceSurfaceInfo2KHR

a pointer to a VkPhysicalDeviceSurfaceInfo2KHR structure describing the surface and other fixed parameters that would be consumed by CreateSwapchainKHR.

pSurfaceFormatCount:IntBuffer

a pointer to an integer related to the number of format tuples available or queried, as described below.

pSurfaceFormats:VkSurfaceFormat2KHR.Buffer

either NULL or a pointer to an array of VkSurfaceFormat2KHR structures.

Annotations
@NativeType:VkResult
vkGetPhysicalDeviceSurfaceFormats2KHRback to summary
public static int vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo, int[] pSurfaceFormatCount, VkSurfaceFormat2KHR.Buffer pSurfaceFormats)

Array version of: GetPhysicalDeviceSurfaceFormats2KHR

Annotations
@NativeType:VkResult