Enum vulkano::memory::ExternalMemoryHandleType
source · #[non_exhaustive]#[repr(u32)]pub enum ExternalMemoryHandleType {
Show 13 variants
OpaqueFd = 1,
OpaqueWin32 = 2,
OpaqueWin32Kmt = 4,
D3D11Texture = 8,
D3D11TextureKmt = 16,
D3D12Heap = 32,
D3D12Resource = 64,
DmaBuf = 512,
AndroidHardwareBuffer = 1_024,
HostAllocation = 128,
HostMappedForeignMemory = 256,
ZirconVmo = 2_048,
RdmaAddress = 4_096,
}
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 = 1
A POSIX file descriptor handle that is only usable with Vulkan and compatible APIs.
OpaqueWin32 = 2
A Windows NT handle that is only usable with Vulkan and compatible APIs.
OpaqueWin32Kmt = 4
A Windows global share handle that is only usable with Vulkan and compatible APIs.
D3D11Texture = 8
A Windows NT handle that refers to a Direct3D 10 or 11 texture resource.
D3D11TextureKmt = 16
A Windows global share handle that refers to a Direct3D 10 or 11 texture resource.
D3D12Heap = 32
A Windows NT handle that refers to a Direct3D 12 heap resource.
D3D12Resource = 64
A Windows NT handle that refers to a Direct3D 12 committed resource.
DmaBuf = 512
A POSIX file descriptor handle that refers to a Linux dma-buf.
AndroidHardwareBuffer = 1_024
A handle for an Android AHardwareBuffer
object.
HostAllocation = 128
A pointer to memory that was allocated by the host.
HostMappedForeignMemory = 256
A pointer to a memory mapping on the host that maps non-host memory.
ZirconVmo = 2_048
A Zircon handle to a virtual memory object.
RdmaAddress = 4_096
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 for ExternalMemoryHandleType
impl PartialEq 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 ==
.