Enum vulkano::memory::ExternalMemoryHandleType
source · [−]#[repr(u32)]
pub enum ExternalMemoryHandleType {
OpaqueFd,
OpaqueWin32,
OpaqueWin32Kmt,
D3D11Texture,
D3D11TextureKmt,
D3D12Heap,
D3D12Resource,
DmaBuf,
AndroidHardwareBuffer,
HostAllocation,
HostMappedForeignMemory,
}
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
OpaqueFd
OpaqueWin32
OpaqueWin32Kmt
D3D11Texture
D3D11TextureKmt
D3D12Heap
D3D12Resource
DmaBuf
AndroidHardwareBuffer
HostAllocation
HostMappedForeignMemory
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 more
sourceimpl 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
Performs the conversion.
sourceimpl Hash for ExternalMemoryHandleType
impl Hash for ExternalMemoryHandleType
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more