Enum vulkano::memory::ExternalMemoryHandleType
source · #[non_exhaustive]
#[repr(u32)]
pub enum ExternalMemoryHandleType {
Show 13 variants
OpaqueFd,
OpaqueWin32,
OpaqueWin32Kmt,
D3D11Texture,
D3D11TextureKmt,
D3D12Heap,
D3D12Resource,
DmaBuf,
AndroidHardwareBuffer,
HostAllocation,
HostMappedForeignMemory,
ZirconVmo,
RdmaAddress,
}
Expand description
A handle type used to export or import memory to/from an external source.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OpaqueFd
A POSIX file descriptor handle that is only usable with Vulkan and compatible APIs.
OpaqueWin32
A Windows NT handle that is only usable with Vulkan and compatible APIs.
OpaqueWin32Kmt
A Windows global share handle that is only usable with Vulkan and compatible APIs.
D3D11Texture
A Windows NT handle that refers to a Direct3D 10 or 11 texture resource.
D3D11TextureKmt
A Windows global share handle that refers to a Direct3D 10 or 11 texture resource.
D3D12Heap
A Windows NT handle that refers to a Direct3D 12 heap resource.
D3D12Resource
A Windows NT handle that refers to a Direct3D 12 committed resource.
DmaBuf
A POSIX file descriptor handle that refers to a Linux dma-buf.
AndroidHardwareBuffer
A handle for an Android AHardwareBuffer
object.
HostAllocation
A pointer to memory that was allocated by the host.
HostMappedForeignMemory
A pointer to a memory mapping on the host that maps non-host memory.
ZirconVmo
A Zircon handle to a virtual memory object.
RdmaAddress
A Remote Direct Memory Address handle to an allocation that is accessible by remote devices.
Trait Implementations§
source§impl Clone for ExternalMemoryHandleType
impl Clone for ExternalMemoryHandleType
source§fn clone(&self) -> ExternalMemoryHandleType
fn clone(&self) -> ExternalMemoryHandleType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExternalMemoryHandleType
impl Debug for ExternalMemoryHandleType
source§impl From<ExternalMemoryHandleType> for ExternalMemoryHandleTypeFlags
impl From<ExternalMemoryHandleType> for ExternalMemoryHandleTypeFlags
source§fn from(val: ExternalMemoryHandleType) -> Self
fn from(val: ExternalMemoryHandleType) -> Self
source§impl From<ExternalMemoryHandleType> for ExternalMemoryHandleTypes
impl From<ExternalMemoryHandleType> for ExternalMemoryHandleTypes
source§fn from(val: ExternalMemoryHandleType) -> Self
fn from(val: ExternalMemoryHandleType) -> Self
source§impl FromIterator<ExternalMemoryHandleType> for ExternalMemoryHandleTypes
impl FromIterator<ExternalMemoryHandleType> for ExternalMemoryHandleTypes
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ExternalMemoryHandleType>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = ExternalMemoryHandleType>,
source§impl Hash for ExternalMemoryHandleType
impl Hash for ExternalMemoryHandleType
source§impl PartialEq<ExternalMemoryHandleType> for ExternalMemoryHandleType
impl PartialEq<ExternalMemoryHandleType> for ExternalMemoryHandleType
source§fn eq(&self, other: &ExternalMemoryHandleType) -> bool
fn eq(&self, other: &ExternalMemoryHandleType) -> bool
self
and other
values to be equal, and is used
by ==
.