Enum external_memory::ExternalBufferMemory [−][src]
pub enum ExternalBufferMemory { OpaqueFd(Fd), DmaBuf(Fd), HostAllocation(Ptr), HostMappedForeignMemory(Ptr), }
Expand description
Representation of an external memory for buffer creation.
Variants
OpaqueFd(Fd)
This is supported on Unix only. Same as ExternalMemoryTypeFlags::OPAQUE_FD while holding a Fd.
DmaBuf(Fd)
This is supported on Linux or Android only. Same as ExternalMemoryTypeFlags::DMA_BUF while holding a Fd.
HostAllocation(Ptr)
Same as ExternalMemoryTypeFlags::HOST_ALLOCATION while holding a Ptr.
HostMappedForeignMemory(Ptr)
Same as ExternalMemoryTypeFlags::HOST_MAPPED_FOREIGN_MEMORY while holding a Ptr.
Implementations
Get the ExternalMemoryType from this enum.
Get the PlatformMemoryType from this enum.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExternalBufferMemory
impl !Send for ExternalBufferMemory
impl !Sync for ExternalBufferMemory
impl Unpin for ExternalBufferMemory
impl UnwindSafe for ExternalBufferMemory