Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
physicalDevice
is the physical device that will be associated with the swapchain to be created, as described forvkCreateSwapchainKHR
.
pSurfaceInfo
points to an instance of theVkPhysicalDeviceSurfaceInfo2KHR
structure, describing the surface and other fixed parameters that would be consumed byvkCreateSwapchainKHR
.pSurfaceCapabilities
points to an instance of theVkSurfaceCapabilities2KHR
structure 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)
physicalDevice
must be a validVkPhysicalDevice
handle
pSurfaceInfo
must be a valid pointer to a validVkPhysicalDeviceSurfaceInfo2KHR
structurepSurfaceCapabilities
must be a valid pointer to aVkSurfaceCapabilities2KHR
structure
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_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
physicalDevice
is the physical device that will be associated with the swapchain to be created, as described forvkCreateSwapchainKHR
.
pSurfaceInfo
points to an instance of theVkPhysicalDeviceSurfaceInfo2KHR
structure, describing the surface and other fixed parameters that would be consumed byvkCreateSwapchainKHR
.pSurfaceFormatCount
is a pointer to an integer related to the number of format tuples available or queried, as described below.pSurfaceFormats
is eitherNULL
or a pointer to an array ofVkSurfaceFormat2KHR
structures.
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)
physicalDevice
must be a validVkPhysicalDevice
handle
pSurfaceInfo
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 not0
, andpSurfaceFormats
is notNULL
,pSurfaceFormats
must be a valid pointer to an array ofpSurfaceFormatCount
VkSurfaceFormat2KHR
structures
Return Codes
[Success]
- VK_SUCCESS
VK_INCOMPLETE
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_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)
sType
must beVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR
pNext
must beNULL
surface
must be a validVkSurfaceKHR
handle
See Also
VkStructureType
,
VkSurfaceKHR
,
vkGetPhysicalDeviceSurfaceCapabilities2KHR
,
vkGetPhysicalDeviceSurfaceFormats2KHR
VkPhysicalDeviceSurfaceInfo2KHR | |
|
Instances
data VkSurfaceCapabilities2KHR Source #
VkSurfaceCapabilities2KHR - Structure describing capabilities of a surface
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR
pNext
must beNULL
or a pointer to a valid instance ofVkSharedPresentSurfaceCapabilitiesKHR
See Also
VkStructureType
,
VkSurfaceCapabilitiesKHR
,
vkGetPhysicalDeviceSurfaceCapabilities2KHR
VkSurfaceCapabilities2KHR | |
|
Instances
Eq VkSurfaceCapabilities2KHR Source # | |
Show VkSurfaceCapabilities2KHR Source # | |
showsPrec :: Int -> VkSurfaceCapabilities2KHR -> ShowS # show :: VkSurfaceCapabilities2KHR -> String # showList :: [VkSurfaceCapabilities2KHR] -> ShowS # | |
Storable VkSurfaceCapabilities2KHR Source # | |
sizeOf :: VkSurfaceCapabilities2KHR -> Int # alignment :: VkSurfaceCapabilities2KHR -> Int # peekElemOff :: Ptr VkSurfaceCapabilities2KHR -> Int -> IO VkSurfaceCapabilities2KHR # pokeElemOff :: Ptr VkSurfaceCapabilities2KHR -> Int -> VkSurfaceCapabilities2KHR -> IO () # peekByteOff :: Ptr b -> Int -> IO VkSurfaceCapabilities2KHR # pokeByteOff :: Ptr b -> Int -> VkSurfaceCapabilities2KHR -> IO () # peek :: Ptr VkSurfaceCapabilities2KHR -> IO VkSurfaceCapabilities2KHR # poke :: Ptr VkSurfaceCapabilities2KHR -> VkSurfaceCapabilities2KHR -> IO () # |
data VkSurfaceFormat2KHR Source #
VkSurfaceFormat2KHR - Structure describing a supported swapchain format tuple
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR
pNext
must beNULL
See Also
VkStructureType
,
VkSurfaceFormatKHR
,
vkGetPhysicalDeviceSurfaceFormats2KHR
VkSurfaceFormat2KHR | |
|
Instances
Eq VkSurfaceFormat2KHR Source # | |
(==) :: VkSurfaceFormat2KHR -> VkSurfaceFormat2KHR -> Bool # (/=) :: VkSurfaceFormat2KHR -> VkSurfaceFormat2KHR -> Bool # | |
Show VkSurfaceFormat2KHR Source # | |
showsPrec :: Int -> VkSurfaceFormat2KHR -> ShowS # show :: VkSurfaceFormat2KHR -> String # showList :: [VkSurfaceFormat2KHR] -> ShowS # | |
Storable VkSurfaceFormat2KHR Source # | |
sizeOf :: VkSurfaceFormat2KHR -> Int # alignment :: VkSurfaceFormat2KHR -> Int # peekElemOff :: Ptr VkSurfaceFormat2KHR -> Int -> IO VkSurfaceFormat2KHR # pokeElemOff :: Ptr VkSurfaceFormat2KHR -> Int -> VkSurfaceFormat2KHR -> IO () # peekByteOff :: Ptr b -> Int -> IO VkSurfaceFormat2KHR # pokeByteOff :: Ptr b -> Int -> VkSurfaceFormat2KHR -> IO () # peek :: Ptr VkSurfaceFormat2KHR -> IO VkSurfaceFormat2KHR # poke :: Ptr VkSurfaceFormat2KHR -> VkSurfaceFormat2KHR -> IO () # |