| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_NV_external_memory_win32
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
deviceis the logical device that owns the memory.
memoryis theVkDeviceMemoryobject.handleTypeis a bitmask ofVkExternalMemoryHandleTypeFlagBitsNVcontaining a single bit specifying the type of handle requested.handlepoints to a WindowsHANDLEin which the handle is returned.
Valid Usage
handleTypemust be a flag specified inVkExportMemoryAllocateInfoNV::handleTypeswhen allocatingmemory
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
memorymust be a validVkDeviceMemoryhandlehandleTypemust be a valid combination ofVkExternalMemoryHandleTypeFlagBitsNVvalueshandleTypemust not be0pHandlemust be a valid pointer to aHANDLEvaluememorymust 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
handleTypemust not have more than one bit set.
handlemust be a valid handle to memory, obtained as specified byhandleType.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV
handleTypemust be a valid combination ofVkExternalMemoryHandleTypeFlagBitsNVvalues
See Also
Constructors
| VkImportMemoryWin32HandleInfoNV | |
Fields
| |
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)
sTypemust beVK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV
- If
pAttributesis notNULL,pAttributesmust be a valid pointer to a validSECURITY_ATTRIBUTESvalue
See Also
Constructors
| VkExportMemoryWin32HandleInfoNV | |
Fields
| |