public class KHRGetSurfaceCapabilities2
extends java.lang.Object
VK_KHR_surface equivalent of the VK_KHR_get_physical_device_properties2 extension.
VK_KHR_get_surface_capabilities2VK_KHR_surface| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME
The extension name.
|
static int |
VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR
Extends
VkStructureType. |
static int |
VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkGetPhysicalDeviceSurfaceCapabilities2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pSurfaceInfo,
long pSurfaceCapabilities)
Unsafe version of:
GetPhysicalDeviceSurfaceCapabilities2KHR |
static int |
nvkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pSurfaceInfo,
long pSurfaceFormatCount,
long pSurfaceFormats)
Unsafe version of:
GetPhysicalDeviceSurfaceFormats2KHR |
static int |
vkGetPhysicalDeviceSurfaceCapabilities2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo,
VkSurfaceCapabilities2KHR pSurfaceCapabilities)
Reports capabilities of a surface on a physical device.
|
static int |
vkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo,
int[] pSurfaceFormatCount,
VkSurfaceFormat2KHR.Buffer pSurfaceFormats)
Array version of:
GetPhysicalDeviceSurfaceFormats2KHR |
static int |
vkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo,
java.nio.IntBuffer pSurfaceFormatCount,
VkSurfaceFormat2KHR.Buffer pSurfaceFormats)
Query color formats supported by surface.
|
public static final int VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION
public static final java.lang.String VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR
VkStructureType.
public static final int VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR
VkStructureType.
public static int nvkGetPhysicalDeviceSurfaceCapabilities2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pSurfaceInfo,
long pSurfaceCapabilities)
GetPhysicalDeviceSurfaceCapabilities2KHRpublic static int vkGetPhysicalDeviceSurfaceCapabilities2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo,
VkSurfaceCapabilities2KHR pSurfaceCapabilities)
To query the basic capabilities of a surface defined by the core or extensions, call:
VkResult vkGetPhysicalDeviceSurfaceCapabilities2KHR(
VkPhysicalDevice physicalDevice,
const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
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.
VkSurfaceCapabilitiesFullScreenExclusiveEXT structure is included in the pNext chain of pSurfaceCapabilities, a VkSurfaceFullScreenExclusiveWin32InfoEXT structure must be included in the pNext chain of pSurfaceInfo.physicalDevice must be a valid VkPhysicalDevice handlepSurfaceInfo must be a valid pointer to a valid VkPhysicalDeviceSurfaceInfo2KHR structurepSurfaceCapabilities must be a valid pointer to a VkSurfaceCapabilities2KHR structurephysicalDevice - the physical device that will be associated with the swapchain to be created, as described for CreateSwapchainKHR.pSurfaceInfo - a pointer to a VkPhysicalDeviceSurfaceInfo2KHR structure describing the surface and other fixed parameters that would be consumed by CreateSwapchainKHR.pSurfaceCapabilities - a pointer to a VkSurfaceCapabilities2KHR structure in which the capabilities are returned.public static int nvkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pSurfaceInfo,
long pSurfaceFormatCount,
long pSurfaceFormats)
GetPhysicalDeviceSurfaceFormats2KHRpSurfaceFormatCount - a pointer to an integer related to the number of format tuples available or queried, as described below.public static int vkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo,
java.nio.IntBuffer pSurfaceFormatCount,
@Nullable
VkSurfaceFormat2KHR.Buffer pSurfaceFormats)
To query the supported swapchain format tuples for a surface, call:
VkResult vkGetPhysicalDeviceSurfaceFormats2KHR(
VkPhysicalDevice physicalDevice,
const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
uint32_t* pSurfaceFormatCount,
VkSurfaceFormat2KHR* pSurfaceFormats);
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. If pSurfaceFormatCount is smaller than the number of format tuples supported for the surface parameters described in pSurfaceInfo, INCOMPLETE will be returned instead of SUCCESS to indicate that not all the available values were returned.
pSurfaceInfo->surface must be supported by physicalDevice, as reported by GetPhysicalDeviceSurfaceSupportKHR or an equivalent platform-specific mechanism.physicalDevice must be a valid VkPhysicalDevice handlepSurfaceInfo must be a valid pointer to a valid VkPhysicalDeviceSurfaceInfo2KHR structurepSurfaceFormatCount must be a valid pointer to a uint32_t valuepSurfaceFormatCount is not 0, and pSurfaceFormats is not NULL, pSurfaceFormats must be a valid pointer to an array of pSurfaceFormatCount VkSurfaceFormat2KHR structuresphysicalDevice - the physical device that will be associated with the swapchain to be created, as described for CreateSwapchainKHR.pSurfaceInfo - a pointer to a VkPhysicalDeviceSurfaceInfo2KHR structure describing the surface and other fixed parameters that would be consumed by CreateSwapchainKHR.pSurfaceFormatCount - a pointer to an integer related to the number of format tuples available or queried, as described below.pSurfaceFormats - either NULL or a pointer to an array of VkSurfaceFormat2KHR structures.public static int vkGetPhysicalDeviceSurfaceFormats2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSurfaceInfo2KHR pSurfaceInfo,
int[] pSurfaceFormatCount,
@Nullable
VkSurfaceFormat2KHR.Buffer pSurfaceFormats)
GetPhysicalDeviceSurfaceFormats2KHRCopyright LWJGL. All Rights Reserved. License terms.