VkFenceGetFdInfoKHR(3)
C Specification
TheVkFenceGetFdInfoKHR structure is defined as:
// Provided by VK_KHR_external_fence_fdtypedef struct VkFenceGetFdInfoKHR { VkStructureType sType; const void* pNext; VkFence fence; VkExternalFenceHandleTypeFlagBits handleType;} VkFenceGetFdInfoKHR;Members
sTypeis aVkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending thisstructure.fenceis the fence from which state will be exported.handleTypeis aVkExternalFenceHandleTypeFlagBits valuespecifying the type of handle requested.
Description
The properties of the file descriptor returned depend on the value ofhandleType.SeeVkExternalFenceHandleTypeFlagBits for a description of theproperties of the defined external fence handle types.
VUID-VkFenceGetFdInfoKHR-handleType-01453
handleTypemust have been included inVkExportFenceCreateInfo::handleTypeswhenfence’scurrent payload was createdVUID-VkFenceGetFdInfoKHR-handleType-01454
IfhandleTyperefers to a handle type with copy payloadtransference semantics,fencemust be signaled, or have anassociatedfence signal operationpending executionVUID-VkFenceGetFdInfoKHR-fence-01455
fencemust not currently have its payload replaced by an importedpayload as described below inImporting Fence Payloads unlessthat imported payload’s handle type was included inVkExternalFenceProperties::exportFromImportedHandleTypesforhandleTypeVUID-VkFenceGetFdInfoKHR-handleType-01456
handleTypemust be defined as a POSIX file descriptor handle
VUID-VkFenceGetFdInfoKHR-sType-sType
sTypemust beVK_STRUCTURE_TYPE_FENCE_GET_FD_INFO_KHRVUID-VkFenceGetFdInfoKHR-fence-parameter
fencemust be a validVkFence handleVUID-VkFenceGetFdInfoKHR-handleType-parameter
handleTypemust be a validVkExternalFenceHandleTypeFlagBits value
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.