Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getFenceWin32HandleKHR :: forall io. MonadIO io => Device -> FenceGetWin32HandleInfoKHR -> io HANDLE
- importFenceWin32HandleKHR :: forall io. MonadIO io => Device -> ImportFenceWin32HandleInfoKHR -> io ()
- data ImportFenceWin32HandleInfoKHR = ImportFenceWin32HandleInfoKHR {}
- data ExportFenceWin32HandleInfoKHR = ExportFenceWin32HandleInfoKHR {}
- data FenceGetWin32HandleInfoKHR = FenceGetWin32HandleInfoKHR {}
- type KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION = 1
- pattern KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION :: forall a. Integral a => a
- type KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME = "VK_KHR_external_fence_win32"
- pattern KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- type HANDLE = Ptr ()
- type DWORD = Word32
- type LPCWSTR = Ptr CWchar
- data SECURITY_ATTRIBUTES
Documentation
getFenceWin32HandleKHR :: forall io. MonadIO io => Device -> FenceGetWin32HandleInfoKHR -> io HANDLE Source #
vkGetFenceWin32HandleKHR - Get a Windows HANDLE for a fence
Parameters
device
is the logical device that created the fence being exported.
pGetWin32HandleInfo
is a pointer to aFenceGetWin32HandleInfoKHR
structure containing parameters of the export operation.pHandle
will return the Windows handle representing the fence state.
Description
For handle types defined as NT handles, the handles returned by
getFenceWin32HandleKHR
are owned by the application. To avoid leaking
resources, the application must release ownership of them using the
CloseHandle
system call when they are no longer needed.
Exporting a Windows handle from a fence may have side effects depending on the transference of the specified handle type, as described in Importing Fence Payloads.
Return Codes
See Also
importFenceWin32HandleKHR :: forall io. MonadIO io => Device -> ImportFenceWin32HandleInfoKHR -> io () Source #
vkImportFenceWin32HandleKHR - Import a fence from a Windows HANDLE
Parameters
device
is the logical device that created the fence.
pImportFenceWin32HandleInfo
is a pointer to aImportFenceWin32HandleInfoKHR
structure specifying the fence and import parameters.
Description
Importing a fence payload from Windows handles does not transfer
ownership of the handle to the Vulkan implementation. For handle types
defined as NT handles, the application must release ownership using
the CloseHandle
system call when the handle is no longer needed.
Applications can import the same fence payload into multiple instances of Vulkan, into the same instance from which it was exported, and multiple times into a given Vulkan instance.
Return Codes
See Also
data ImportFenceWin32HandleInfoKHR Source #
VkImportFenceWin32HandleInfoKHR - (None)
Description
The handle types supported by handleType
are:
Handle Type | Transference | Permanence Supported |
---|---|---|
EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT | Reference | Temporary,Permanent |
EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT | Reference | Temporary,Permanent |
Handle Types Supported by ImportFenceWin32HandleInfoKHR
Valid Usage
handleType
must be a value included in the Handle Types Supported by VkImportFenceWin32HandleInfoKHR table.
- If
handleType
is notEXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT
,name
must beNULL
. - If
handleType
is not0
andhandle
isNULL
,name
must name a valid synchronization primitive of the type specified byhandleType
. - If
handleType
is not0
andname
isNULL
,handle
must be a valid handle of the type specified byhandleType
. - If
handle
is notNULL
,name
must beNULL
. - If
handle
is notNULL
, it must obey any requirements listed forhandleType
in external fence handle types compatibility. - If
name
is notNULL
, it must obey any requirements listed forhandleType
in external fence handle types compatibility.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_IMPORT_FENCE_WIN32_HANDLE_INFO_KHR
pNext
must beNULL
fence
must be a validFence
handleflags
must be a valid combination ofFenceImportFlagBits
values- If
handleType
is not0
,handleType
must be a validExternalFenceHandleTypeFlagBits
value
Host Synchronization
- Host access to
fence
must be externally synchronized
See Also
ExternalFenceHandleTypeFlagBits
,
Fence
,
FenceImportFlags
,
StructureType
,
importFenceWin32HandleKHR
ImportFenceWin32HandleInfoKHR | |
|
Instances
data ExportFenceWin32HandleInfoKHR Source #
VkExportFenceWin32HandleInfoKHR - Structure specifying additional attributes of Windows handles exported from a fence
Description
If this structure is not present, or if pAttributes
is set to NULL
,
default security descriptor values will be used, and child processes
created by the application will not inherit the handle, as described in
the MSDN documentation for “Synchronization Object Security and Access
Rights”1. Further, if the structure is not present, the access rights
will be
DXGI_SHARED_RESOURCE_READ
| DXGI_SHARED_RESOURCE_WRITE
for handles of the following types:
EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT
Valid Usage
- If
ExportFenceCreateInfo
::handleTypes
does not includeEXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT
, aExportFenceWin32HandleInfoKHR
structure must not be included in thepNext
chain ofFenceCreateInfo
.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_EXPORT_FENCE_WIN32_HANDLE_INFO_KHR
- If
pAttributes
is notNULL
,pAttributes
must be a valid pointer to a validSECURITY_ATTRIBUTES
value
See Also
ExportFenceWin32HandleInfoKHR | |
|
Instances
data FenceGetWin32HandleInfoKHR Source #
VkFenceGetWin32HandleInfoKHR - Structure describing a Win32 handle fence export operation
Description
The properties of the handle returned depend on the value of
handleType
. See
ExternalFenceHandleTypeFlagBits
for a description of the properties of the defined external fence handle
types.
Valid Usage
handleType
must have been included inExportFenceCreateInfo
::handleTypes
when thefence
’s current payload was created.
- If
handleType
is defined as an NT handle,getFenceWin32HandleKHR
must be called no more than once for each valid unique combination offence
andhandleType
. fence
must not currently have its payload replaced by an imported payload as described below in Importing Fence Payloads unless that imported payload’s handle type was included inExternalFenceProperties
::exportFromImportedHandleTypes
forhandleType
.- If
handleType
refers to a handle type with copy payload transference semantics,fence
must be signaled, or have an associated fence signal operation pending execution. handleType
must be defined as an NT handle or a global share handle.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_FENCE_GET_WIN32_HANDLE_INFO_KHR
pNext
must beNULL
fence
must be a validFence
handlehandleType
must be a validExternalFenceHandleTypeFlagBits
value
See Also
ExternalFenceHandleTypeFlagBits
,
Fence
,
StructureType
,
getFenceWin32HandleKHR
FenceGetWin32HandleInfoKHR | |
|
Instances
type KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION = 1 Source #
pattern KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME = "VK_KHR_external_fence_win32" Source #
pattern KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #
data SECURITY_ATTRIBUTES Source #