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
Describes a handle type used for Vulkan external memory apis. This is not just a suggestion. Check out vkExternalMemoryHandleTypeFlagBits in the Vulkan spec.
If you specify an handle type that doesnt make sense (for example, using a dma-buf handle type on Windows) when using this handle, a panic will happen.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OpaqueFd
OpaqueWin32
OpaqueWin32Kmt
D3D11Texture
D3D11TextureKmt
D3D12Heap
D3D12Resource
DmaBuf
AndroidHardwareBuffer
HostAllocation
HostMappedForeignMemory
ZirconVmo
RdmaAddress
Trait Implementations
sourceimpl Clone for ExternalMemoryHandleType
impl Clone for ExternalMemoryHandleType
sourcefn clone(&self) -> ExternalMemoryHandleType
fn clone(&self) -> ExternalMemoryHandleType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExternalMemoryHandleType
impl Debug for ExternalMemoryHandleType
sourceimpl From<ExternalMemoryHandleType> for ExternalMemoryHandleTypeFlags
impl From<ExternalMemoryHandleType> for ExternalMemoryHandleTypeFlags
sourcefn from(val: ExternalMemoryHandleType) -> Self
fn from(val: ExternalMemoryHandleType) -> Self
Converts to this type from the input type.
sourceimpl Hash for ExternalMemoryHandleType
impl Hash for ExternalMemoryHandleType
sourceimpl PartialEq<ExternalMemoryHandleType> for ExternalMemoryHandleType
impl PartialEq<ExternalMemoryHandleType> for ExternalMemoryHandleType
sourcefn eq(&self, other: &ExternalMemoryHandleType) -> bool
fn eq(&self, other: &ExternalMemoryHandleType) -> bool
impl Copy for ExternalMemoryHandleType
impl Eq for ExternalMemoryHandleType
impl StructuralEq for ExternalMemoryHandleType
impl StructuralPartialEq for ExternalMemoryHandleType
Auto Trait Implementations
impl RefUnwindSafe for ExternalMemoryHandleType
impl Send for ExternalMemoryHandleType
impl Sync for ExternalMemoryHandleType
impl Unpin for ExternalMemoryHandleType
impl UnwindSafe for ExternalMemoryHandleType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more