vulkan-3.6.1: Bindings to the Vulkan graphics API.
Safe HaskellNone
LanguageHaskell2010

Vulkan.Extensions.VK_NV_external_memory_win32

Synopsis

Documentation

getMemoryWin32HandleNV Source #

Arguments

:: forall io. MonadIO io 
=> Device

device is the logical device that owns the memory.

device must be a valid Device handle

-> DeviceMemory

memory is the DeviceMemory object.

memory must be a valid DeviceMemory handle

memory must have been created, allocated, or retrieved from device

-> ExternalMemoryHandleTypeFlagsNV

handleType is a bitmask of ExternalMemoryHandleTypeFlagBitsNV containing a single bit specifying the type of handle requested.

handleType must be a flag specified in ExportMemoryAllocateInfoNV::handleTypes when allocating memory

handleType must be a valid combination of ExternalMemoryHandleTypeFlagBitsNV values

handleType must not be 0

-> io HANDLE 

vkGetMemoryWin32HandleNV - retrieve Win32 handle to a device memory object

Return Codes

Success
Failure

See Also

Device, DeviceMemory, ExternalMemoryHandleTypeFlagsNV

data ImportMemoryWin32HandleInfoNV Source #

VkImportMemoryWin32HandleInfoNV - import Win32 memory created on the same physical device

Description

If handleType is 0, this structure is ignored by consumers of the MemoryAllocateInfo structure it is chained from.

Valid Usage (Implicit)

See Also

ExternalMemoryHandleTypeFlagsNV, StructureType

Constructors

ImportMemoryWin32HandleInfoNV 

Fields

Instances

Instances details
Eq ImportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

Show ImportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

Generic ImportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

Associated Types

type Rep ImportMemoryWin32HandleInfoNV :: Type -> Type #

Storable ImportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

FromCStruct ImportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

ToCStruct ImportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

Zero ImportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

type Rep ImportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

type Rep ImportMemoryWin32HandleInfoNV = D1 ('MetaData "ImportMemoryWin32HandleInfoNV" "Vulkan.Extensions.VK_NV_external_memory_win32" "vulkan-3.6.1-inplace" 'False) (C1 ('MetaCons "ImportMemoryWin32HandleInfoNV" 'PrefixI 'True) (S1 ('MetaSel ('Just "handleType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ExternalMemoryHandleTypeFlagsNV) :*: S1 ('MetaSel ('Just "handle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HANDLE)))

data ExportMemoryWin32HandleInfoNV 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

1
https://docs.microsoft.com/en-us/windows/win32/sync/synchronization-object-security-and-access-rights

Valid Usage (Implicit)

  • If pAttributes is not NULL, pAttributes must be a valid pointer to a valid SECURITY_ATTRIBUTES value

See Also

StructureType

Constructors

ExportMemoryWin32HandleInfoNV 

Fields

Instances

Instances details
Eq ExportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

Show ExportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

Generic ExportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

Associated Types

type Rep ExportMemoryWin32HandleInfoNV :: Type -> Type #

Storable ExportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

FromCStruct ExportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

ToCStruct ExportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

Zero ExportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

type Rep ExportMemoryWin32HandleInfoNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_win32

type Rep ExportMemoryWin32HandleInfoNV = D1 ('MetaData "ExportMemoryWin32HandleInfoNV" "Vulkan.Extensions.VK_NV_external_memory_win32" "vulkan-3.6.1-inplace" 'False) (C1 ('MetaCons "ExportMemoryWin32HandleInfoNV" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Ptr SECURITY_ATTRIBUTES)) :*: S1 ('MetaSel ('Just "dwAccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DWORD)))

type NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME = "VK_NV_external_memory_win32" Source #

type HANDLE = Ptr () Source #

newtype ExternalMemoryHandleTypeFlagBitsNV Source #

VkExternalMemoryHandleTypeFlagBitsNV - Bitmask specifying external memory handle types

See Also

ExternalMemoryHandleTypeFlagsNV

Bundled Patterns

pattern EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_NV :: ExternalMemoryHandleTypeFlagBitsNV

EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_NV specifies a handle to memory returned by getMemoryWin32HandleNV, or one duplicated from such a handle using DuplicateHandle().

pattern EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_NV :: ExternalMemoryHandleTypeFlagBitsNV

EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_NV specifies a handle to memory returned by getMemoryWin32HandleNV.

pattern EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_BIT_NV :: ExternalMemoryHandleTypeFlagBitsNV

EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_BIT_NV specifies a valid NT handle to memory returned by IDXGIResource1::CreateSharedHandle, or a handle duplicated from such a handle using DuplicateHandle().

pattern EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_KMT_BIT_NV :: ExternalMemoryHandleTypeFlagBitsNV

EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_KMT_BIT_NV specifies a handle to memory returned by IDXGIResource::GetSharedHandle().

Instances

Instances details
Eq ExternalMemoryHandleTypeFlagBitsNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_capabilities

Ord ExternalMemoryHandleTypeFlagBitsNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_capabilities

Read ExternalMemoryHandleTypeFlagBitsNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_capabilities

Show ExternalMemoryHandleTypeFlagBitsNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_capabilities

Storable ExternalMemoryHandleTypeFlagBitsNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_capabilities

Bits ExternalMemoryHandleTypeFlagBitsNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_capabilities

Methods

(.&.) :: ExternalMemoryHandleTypeFlagBitsNV -> ExternalMemoryHandleTypeFlagBitsNV -> ExternalMemoryHandleTypeFlagBitsNV #

(.|.) :: ExternalMemoryHandleTypeFlagBitsNV -> ExternalMemoryHandleTypeFlagBitsNV -> ExternalMemoryHandleTypeFlagBitsNV #

xor :: ExternalMemoryHandleTypeFlagBitsNV -> ExternalMemoryHandleTypeFlagBitsNV -> ExternalMemoryHandleTypeFlagBitsNV #

complement :: ExternalMemoryHandleTypeFlagBitsNV -> ExternalMemoryHandleTypeFlagBitsNV #

shift :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

rotate :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

zeroBits :: ExternalMemoryHandleTypeFlagBitsNV #

bit :: Int -> ExternalMemoryHandleTypeFlagBitsNV #

setBit :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

clearBit :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

complementBit :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

testBit :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> Bool #

bitSizeMaybe :: ExternalMemoryHandleTypeFlagBitsNV -> Maybe Int #

bitSize :: ExternalMemoryHandleTypeFlagBitsNV -> Int #

isSigned :: ExternalMemoryHandleTypeFlagBitsNV -> Bool #

shiftL :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

unsafeShiftL :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

shiftR :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

unsafeShiftR :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

rotateL :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

rotateR :: ExternalMemoryHandleTypeFlagBitsNV -> Int -> ExternalMemoryHandleTypeFlagBitsNV #

popCount :: ExternalMemoryHandleTypeFlagBitsNV -> Int #

Zero ExternalMemoryHandleTypeFlagBitsNV Source # 
Instance details

Defined in Vulkan.Extensions.VK_NV_external_memory_capabilities