| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Core10.ExtensionDiscovery
- type VK_MAX_EXTENSION_NAME_SIZE = 256
- pattern VK_MAX_EXTENSION_NAME_SIZE :: Integral a => a
- vkEnumerateInstanceExtensionProperties :: ("pLayerName" ::: Ptr CChar) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkExtensionProperties) -> IO VkResult
- vkEnumerateDeviceExtensionProperties :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pLayerName" ::: Ptr CChar) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkExtensionProperties) -> IO VkResult
- data VkExtensionProperties = VkExtensionProperties {}
Documentation
type VK_MAX_EXTENSION_NAME_SIZE = 256 Source #
pattern VK_MAX_EXTENSION_NAME_SIZE :: Integral a => a Source #
vkEnumerateInstanceExtensionProperties :: ("pLayerName" ::: Ptr CChar) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkExtensionProperties) -> IO VkResult Source #
vkEnumerateInstanceExtensionProperties - Returns up to requested number of global extension properties
Parameters
pLayerNameis eitherNULLor a pointer to a null-terminated UTF-8 string naming the layer to retrieve extensions from.
pPropertyCountis a pointer to an integer related to the number of extension properties available or queried, as described below.pPropertiesis eitherNULLor a pointer to an array ofVkExtensionPropertiesstructures.
Description
When pLayerName parameter is NULL, only extensions provided by the
Vulkan implementation or by implicitly enabled layers are returned. When
pLayerName is the name of a layer, the instance extensions provided by
that layer are returned.
If pProperties is NULL, then the number of extensions properties
available is returned in pPropertyCount. Otherwise, pPropertyCount
must point to a variable set by the user to the number of elements in
the pProperties array, and on return the variable is overwritten with
the number of structures actually written to pProperties. If
pPropertyCount is less than the number of extension properties
available, at most pPropertyCount structures will be written. If
pPropertyCount is smaller than the number of extensions available,
VK_INCOMPLETE will be returned instead of VK_SUCCESS, to indicate
that not all the available properties were returned.
Because the list of available layers may change externally between calls
to vkEnumerateInstanceExtensionProperties, two calls may retrieve
different results if a pLayerName is available in one call but not in
another. The extensions supported by a layer may also change between two
calls, e.g. if the layer implementation is replaced by a different
version between those calls.
Valid Usage (Implicit)
- If
pLayerNameis notNULL,pLayerNamemust be a null-terminated UTF-8 string
pPropertyCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not0, andpPropertiesis notNULL,pPropertiesmust be a valid pointer to an array ofpPropertyCountVkExtensionPropertiesstructures
Return Codes
- Success
- -
VK_SUCCESSVK_INCOMPLETE
- Failure
- -
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_LAYER_NOT_PRESENT
See Also
vkEnumerateDeviceExtensionProperties :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pLayerName" ::: Ptr CChar) -> ("pPropertyCount" ::: Ptr Word32) -> ("pProperties" ::: Ptr VkExtensionProperties) -> IO VkResult Source #
vkEnumerateDeviceExtensionProperties - Returns properties of available physical device extensions
Parameters
physicalDeviceis the physical device that will be queried.
pLayerNameis eitherNULLor a pointer to a null-terminated UTF-8 string naming the layer to retrieve extensions from.pPropertyCountis a pointer to an integer related to the number of extension properties available or queried, and is treated in the same fashion as thevkEnumerateInstanceExtensionProperties::pPropertyCountparameter.pPropertiesis eitherNULLor a pointer to an array ofVkExtensionPropertiesstructures.
Description
When pLayerName parameter is NULL, only extensions provided by the
Vulkan implementation or by implicitly enabled layers are returned. When
pLayerName is the name of a layer, the device extensions provided by
that layer are returned.
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandle
- If
pLayerNameis notNULL,pLayerNamemust be a null-terminated UTF-8 string pPropertyCountmust be a valid pointer to auint32_tvalue- If the value referenced by
pPropertyCountis not0, andpPropertiesis notNULL,pPropertiesmust be a valid pointer to an array ofpPropertyCountVkExtensionPropertiesstructures
Return Codes
- Success
- -
VK_SUCCESSVK_INCOMPLETE
- Failure
- -
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_LAYER_NOT_PRESENT
See Also
data VkExtensionProperties Source #
VkExtensionProperties - Structure specifying a extension properties
Description
See Also
vkEnumerateDeviceExtensionProperties,
vkEnumerateInstanceExtensionProperties
Constructors
| VkExtensionProperties | |
Fields
| |