Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type HANDLE = Ptr ()
- data SECURITY_ATTRIBUTES
- type DWORD = Word32
- pattern VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV :: VkStructureType
- pattern VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV :: VkStructureType
- pattern VK_NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION :: Integral a => a
- pattern VK_NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkGetMemoryWin32HandleNV :: ("device" ::: VkDevice) -> ("memory" ::: VkDeviceMemory) -> ("handleType" ::: VkExternalMemoryHandleTypeFlagsNV) -> ("pHandle" ::: Ptr HANDLE) -> IO VkResult
- data VkImportMemoryWin32HandleInfoNV = VkImportMemoryWin32HandleInfoNV {}
- data VkExportMemoryWin32HandleInfoNV = VkExportMemoryWin32HandleInfoNV {}
Documentation
data SECURITY_ATTRIBUTES Source #
Opaque data
pattern VK_NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION :: Integral a => a Source #
pattern VK_NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkGetMemoryWin32HandleNV :: ("device" ::: VkDevice) -> ("memory" ::: VkDeviceMemory) -> ("handleType" ::: VkExternalMemoryHandleTypeFlagsNV) -> ("pHandle" ::: Ptr HANDLE) -> IO VkResult Source #
vkGetMemoryWin32HandleNV - retrieve Win32 handle to a device memory object
Parameters
device
is the logical device that owns the memory.
memory
is theVkDeviceMemory
object.handleType
is a bitmask ofVkExternalMemoryHandleTypeFlagBitsNV
containing a single bit specifying the type of handle requested.handle
points to a WindowsHANDLE
in which the handle is returned.
Valid Usage
handleType
must be a flag specified inVkExportMemoryAllocateInfoNV
::handleTypes
when allocatingmemory
Valid Usage (Implicit)
device
must be a validVkDevice
handle
memory
must be a validVkDeviceMemory
handlehandleType
must be a valid combination ofVkExternalMemoryHandleTypeFlagBitsNV
valueshandleType
must not be0
pHandle
must be a valid pointer to aHANDLE
valuememory
must have been created, allocated, or retrieved fromdevice
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_TOO_MANY_OBJECTS
VK_ERROR_OUT_OF_HOST_MEMORY
See Also
data VkImportMemoryWin32HandleInfoNV Source #
VkImportMemoryWin32HandleInfoNV - import Win32 memory created on the same physical device
Description
If handleType
is 0
, this structure is ignored by consumers of the
VkMemoryAllocateInfo
structure it is
chained from.
Valid Usage
handleType
must not have more than one bit set.
handle
must be a valid handle to memory, obtained as specified byhandleType
.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV
handleType
must be a valid combination ofVkExternalMemoryHandleTypeFlagBitsNV
values
See Also
VkImportMemoryWin32HandleInfoNV | |
|
Instances
data VkExportMemoryWin32HandleInfoNV Source #
VkExportMemoryWin32HandleInfoNV - specify security attributes and access rights for Win32 memory handles
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
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV
- If
pAttributes
is notNULL
,pAttributes
must be a valid pointer to a validSECURITY_ATTRIBUTES
value
See Also
VkExportMemoryWin32HandleInfoNV | |
|