| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Core11.Promoted_from_VK_KHR_external_fence_capabilities
- newtype VkExternalFenceHandleTypeFlagBits = VkExternalFenceHandleTypeFlagBits VkFlags
- pattern VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT :: VkExternalFenceHandleTypeFlagBits
- pattern VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT :: VkExternalFenceHandleTypeFlagBits
- pattern VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT :: VkExternalFenceHandleTypeFlagBits
- pattern VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT :: VkExternalFenceHandleTypeFlagBits
- newtype VkExternalFenceFeatureFlagBits = VkExternalFenceFeatureFlagBits VkFlags
- pattern VK_EXTERNAL_FENCE_FEATURE_EXPORTABLE_BIT :: VkExternalFenceFeatureFlagBits
- pattern VK_EXTERNAL_FENCE_FEATURE_IMPORTABLE_BIT :: VkExternalFenceFeatureFlagBits
- pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO :: VkStructureType
- pattern VK_STRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIES :: VkStructureType
- vkGetPhysicalDeviceExternalFenceProperties :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pExternalFenceInfo" ::: Ptr VkPhysicalDeviceExternalFenceInfo) -> ("pExternalFenceProperties" ::: Ptr VkExternalFenceProperties) -> IO ()
- data VkPhysicalDeviceExternalFenceInfo = VkPhysicalDeviceExternalFenceInfo {}
- data VkExternalFenceProperties = VkExternalFenceProperties {}
- type VkExternalFenceHandleTypeFlags = VkExternalFenceHandleTypeFlagBits
- type VkExternalFenceFeatureFlags = VkExternalFenceFeatureFlagBits
Documentation
newtype VkExternalFenceHandleTypeFlagBits Source #
VkExternalFenceHandleTypeFlagBits - Bitmask of valid external fence handle types
Description
VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BITspecifies a POSIX file descriptor handle that has only limited valid usage outside of Vulkan and other compatible APIs. It must be compatible with the POSIX system callsdup,dup2,close, and the non-standard system calldup3. Additionally, it must be transportable over a socket using anSCM_RIGHTScontrol message. It owns a reference to the underlying synchronization primitive represented by its Vulkan fence object.
VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BITspecifies an NT handle that has only limited valid usage outside of Vulkan and other compatible APIs. It must be compatible with the functionsDuplicateHandle,CloseHandle,CompareObjectHandles,GetHandleInformation, andSetHandleInformation. It owns a reference to the underlying synchronization primitive represented by its Vulkan fence object.VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BITspecifies a global share handle that has only limited valid usage outside of Vulkan and other compatible APIs. It is not compatible with any native APIs. It does not own a reference to the underlying synchronization primitive represented by its Vulkan fence object, and will therefore become invalid when all Vulkan fence objects associated with it are destroyed.VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BITspecifies a POSIX file descriptor handle to a Linux Sync File or Android Fence. It can be used with any native API accepting a valid sync file or fence as input. It owns a reference to the underlying synchronization primitive associated with the file descriptor. Implementations which support importing this handle type must accept any type of sync or fence FD supported by the native system they are running on.
Some external fence handle types can only be shared within the same underlying physical device and/or the same driver version, as defined in the following table:
+----------------------+----------------------+-----------------------+ | Handle type | @VkPhysicalDeviceIDP | @VkPhysicalDeviceIDPr | | | roperties@::@driverU | operties@::@deviceUUI | | | UID@ | D@ | +----------------------+----------------------+-----------------------+ | @VK_EXTERNAL_FENCE_H | Must match | Must match | | ANDLE_TYPE_OPAQUE_FD | | | | _BIT@ | | | +----------------------+----------------------+-----------------------+ | @VK_EXTERNAL_FENCE_H | Must match | Must match | | ANDLE_TYPE_OPAQUE_WI | | | | N32_BIT@ | | | +----------------------+----------------------+-----------------------+ | @VK_EXTERNAL_FENCE_H | Must match | Must match | | ANDLE_TYPE_OPAQUE_WI | | | | N32_KMT_BIT@ | | | +----------------------+----------------------+-----------------------+ | @VK_EXTERNAL_FENCE_H | No restriction | No restriction | | ANDLE_TYPE_SYNC_FD_B | | | | IT@ | | | +----------------------+----------------------+-----------------------+ External fence handle types compatibility
See Also
VkExternalFenceHandleTypeFlags,
VkFenceGetFdInfoKHR,
VkFenceGetWin32HandleInfoKHR,
VkImportFenceFdInfoKHR,
VkImportFenceWin32HandleInfoKHR,
VkPhysicalDeviceExternalFenceInfo
Constructors
| VkExternalFenceHandleTypeFlagBits VkFlags |
Instances
pattern VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT :: VkExternalFenceHandleTypeFlagBits Source #
pattern VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT :: VkExternalFenceHandleTypeFlagBits Source #
newtype VkExternalFenceFeatureFlagBits Source #
VkExternalFenceFeatureFlagBits - Bitfield describing features of an external fence handle type
See Also
Constructors
| VkExternalFenceFeatureFlagBits VkFlags |
Instances
pattern VK_EXTERNAL_FENCE_FEATURE_EXPORTABLE_BIT :: VkExternalFenceFeatureFlagBits Source #
VK_EXTERNAL_FENCE_FEATURE_EXPORTABLE_BIT specifies handles of this
type can be exported from Vulkan fence objects.
pattern VK_EXTERNAL_FENCE_FEATURE_IMPORTABLE_BIT :: VkExternalFenceFeatureFlagBits Source #
VK_EXTERNAL_FENCE_FEATURE_IMPORTABLE_BIT specifies handles of this
type can be imported to Vulkan fence objects.
vkGetPhysicalDeviceExternalFenceProperties :: ("physicalDevice" ::: VkPhysicalDevice) -> ("pExternalFenceInfo" ::: Ptr VkPhysicalDeviceExternalFenceInfo) -> ("pExternalFenceProperties" ::: Ptr VkExternalFenceProperties) -> IO () Source #
vkGetPhysicalDeviceExternalFenceProperties - Function for querying external fence handle capabilities.
Parameters
physicalDeviceis the physical device from which to query the fence capabilities.
pExternalFenceInfopoints to an instance of theVkPhysicalDeviceExternalFenceInfostructure, describing the parameters that would be consumed byvkCreateFence.pExternalFencePropertiespoints to an instance of theVkExternalFencePropertiesstructure in which capabilities are returned.
Description
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandle
pExternalFenceInfomust be a valid pointer to a validVkPhysicalDeviceExternalFenceInfostructurepExternalFencePropertiesmust be a valid pointer to aVkExternalFencePropertiesstructure
See Also
VkExternalFenceProperties,
VkPhysicalDevice,
VkPhysicalDeviceExternalFenceInfo
data VkPhysicalDeviceExternalFenceInfo Source #
VkPhysicalDeviceExternalFenceInfo - Structure specifying fence creation parameters.
Description
Note
Handles of type VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT generated by
the implementation may represent either Linux Sync Files or Android
Fences at the implementation’s discretion. Applications should only
use operations defined for both types of file descriptors, unless they
know via means external to Vulkan the type of the file descriptor, or
are prepared to deal with the system-defined operation failures
resulting from using the wrong type.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO
pNextmust beNULLhandleTypemust be a validVkExternalFenceHandleTypeFlagBitsvalue
See Also
VkExternalFenceHandleTypeFlagBits,
VkStructureType,
vkGetPhysicalDeviceExternalFenceProperties,
vkGetPhysicalDeviceExternalFencePropertiesKHR
Constructors
| VkPhysicalDeviceExternalFenceInfo | |
Fields
| |
data VkExternalFenceProperties Source #
VkExternalFenceProperties - Structure describing supported external fence handle features
Description
If handleType is not supported by the implementation, then
VkExternalFenceProperties::externalFenceFeatures will be set to
zero.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIES
pNextmust beNULL
See Also
VkExternalFenceFeatureFlags, VkExternalFenceHandleTypeFlags,
VkStructureType,
vkGetPhysicalDeviceExternalFenceProperties,
vkGetPhysicalDeviceExternalFencePropertiesKHR
Constructors
| VkExternalFenceProperties | |
Fields
| |
type VkExternalFenceHandleTypeFlags = VkExternalFenceHandleTypeFlagBits Source #
VkExternalFenceHandleTypeFlags - Bitmask of VkExternalFenceHandleTypeFlagBits
Description
VkExternalFenceHandleTypeFlags is a bitmask type for setting a mask of
zero or more VkExternalFenceHandleTypeFlagBits.
See Also
VkExportFenceCreateInfo,
VkExternalFenceHandleTypeFlagBits, VkExternalFenceProperties
type VkExternalFenceFeatureFlags = VkExternalFenceFeatureFlagBits Source #
VkExternalFenceFeatureFlags - Bitmask of VkExternalFenceFeatureFlagBits
Description
VkExternalFenceFeatureFlags is a bitmask type for setting a mask of
zero or more VkExternalFenceFeatureFlagBits.