| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_KHR_get_surface_capabilities2
- pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR :: VkStructureType
- pattern VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR :: VkStructureType
- pattern VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR :: VkStructureType
- pattern VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION :: Integral a => a
- pattern VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkGetPhysicalDeviceSurfaceCapabilities2KHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pSurfaceInfo" ::: Ptr VkPhysicalDeviceSurfaceInfo2KHR) -> ("pSurfaceCapabilities" ::: Ptr VkSurfaceCapabilities2KHR) -> IO VkResult
- vkGetPhysicalDeviceSurfaceFormats2KHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pSurfaceInfo" ::: Ptr VkPhysicalDeviceSurfaceInfo2KHR) -> ("pSurfaceFormatCount" ::: Ptr Word32) -> ("pSurfaceFormats" ::: Ptr VkSurfaceFormat2KHR) -> IO VkResult
- data VkPhysicalDeviceSurfaceInfo2KHR = VkPhysicalDeviceSurfaceInfo2KHR {
- vkSType :: VkStructureType
- vkPNext :: Ptr ()
- vkSurface :: VkSurfaceKHR
- data VkSurfaceCapabilities2KHR = VkSurfaceCapabilities2KHR {}
- data VkSurfaceFormat2KHR = VkSurfaceFormat2KHR {}
Documentation
pattern VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION :: Integral a => a Source #
pattern VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkGetPhysicalDeviceSurfaceCapabilities2KHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pSurfaceInfo" ::: Ptr VkPhysicalDeviceSurfaceInfo2KHR) -> ("pSurfaceCapabilities" ::: Ptr VkSurfaceCapabilities2KHR) -> IO VkResult Source #
vkGetPhysicalDeviceSurfaceCapabilities2KHR - Reports capabilities of a surface on a physical device
Parameters
physicalDeviceis the physical device that will be associated with the swapchain to be created, as described forvkCreateSwapchainKHR.
pSurfaceInfopoints to an instance of theVkPhysicalDeviceSurfaceInfo2KHRstructure, describing the surface and other fixed parameters that would be consumed byvkCreateSwapchainKHR.pSurfaceCapabilitiespoints to an instance of theVkSurfaceCapabilities2KHRstructure in which the capabilities are returned.
Description
vkGetPhysicalDeviceSurfaceCapabilities2KHR behaves similarly to
vkGetPhysicalDeviceSurfaceCapabilitiesKHR,
with the ability to specify extended inputs via chained input
structures, and to return extended information via chained output
structures.
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandle
pSurfaceInfomust be a valid pointer to a validVkPhysicalDeviceSurfaceInfo2KHRstructurepSurfaceCapabilitiesmust be a valid pointer to aVkSurfaceCapabilities2KHRstructure
Return Codes
- Success
- -
VK_SUCCESS
- Failure
- -
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_SURFACE_LOST_KHR
See Also
VkPhysicalDevice,
VkPhysicalDeviceSurfaceInfo2KHR, VkSurfaceCapabilities2KHR
vkGetPhysicalDeviceSurfaceFormats2KHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pSurfaceInfo" ::: Ptr VkPhysicalDeviceSurfaceInfo2KHR) -> ("pSurfaceFormatCount" ::: Ptr Word32) -> ("pSurfaceFormats" ::: Ptr VkSurfaceFormat2KHR) -> IO VkResult Source #
vkGetPhysicalDeviceSurfaceFormats2KHR - Query color formats supported by surface
Parameters
physicalDeviceis the physical device that will be associated with the swapchain to be created, as described forvkCreateSwapchainKHR.
pSurfaceInfopoints to an instance of theVkPhysicalDeviceSurfaceInfo2KHRstructure, describing the surface and other fixed parameters that would be consumed byvkCreateSwapchainKHR.pSurfaceFormatCountis a pointer to an integer related to the number of format tuples available or queried, as described below.pSurfaceFormatsis eitherNULLor a pointer to an array ofVkSurfaceFormat2KHRstructures.
Description
If pSurfaceFormats is NULL, then the number of format tuples
supported for the given surface is returned in pSurfaceFormatCount.
The number of format tuples supported will be greater than or equal to
1. 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,
VK_INCOMPLETE will be returned instead of VK_SUCCESS to indicate
that not all the available values were returned.
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandle
pSurfaceInfomust be a valid pointer to a validVkPhysicalDeviceSurfaceInfo2KHRstructurepSurfaceFormatCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pSurfaceFormatCountis not0, andpSurfaceFormatsis notNULL,pSurfaceFormatsmust be a valid pointer to an array ofpSurfaceFormatCountVkSurfaceFormat2KHRstructures
Return Codes
- Success
- -
VK_SUCCESSVK_INCOMPLETE
- Failure
- -
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_SURFACE_LOST_KHR
See Also
VkPhysicalDevice,
VkPhysicalDeviceSurfaceInfo2KHR, VkSurfaceFormat2KHR
data VkPhysicalDeviceSurfaceInfo2KHR Source #
VkPhysicalDeviceSurfaceInfo2KHR - Structure specifying a surface and related swapchain creation parameters
Description
The members of VkPhysicalDeviceSurfaceInfo2KHR correspond to the
arguments to
vkGetPhysicalDeviceSurfaceCapabilitiesKHR,
with sType and pNext added for extensibility.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR
pNextmust beNULLsurfacemust be a validVkSurfaceKHRhandle
See Also
VkStructureType,
VkSurfaceKHR,
vkGetPhysicalDeviceSurfaceCapabilities2KHR,
vkGetPhysicalDeviceSurfaceFormats2KHR
Constructors
| VkPhysicalDeviceSurfaceInfo2KHR | |
Fields
| |
data VkSurfaceCapabilities2KHR Source #
VkSurfaceCapabilities2KHR - Structure describing capabilities of a surface
Description
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR
pNextmust beNULLor a pointer to a valid instance ofVkSharedPresentSurfaceCapabilitiesKHR
See Also
VkStructureType,
VkSurfaceCapabilitiesKHR,
vkGetPhysicalDeviceSurfaceCapabilities2KHR
Constructors
| VkSurfaceCapabilities2KHR | |
Fields
| |
data VkSurfaceFormat2KHR Source #
VkSurfaceFormat2KHR - Structure describing a supported swapchain format tuple
Description
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR
pNextmust beNULL
See Also
VkStructureType,
VkSurfaceFormatKHR,
vkGetPhysicalDeviceSurfaceFormats2KHR
Constructors
| VkSurfaceFormat2KHR | |
Fields
| |