pub enum MkMemoryType {
DeviceLocal,
HostVisible,
HostCached,
Unified,
}Expand description
GPU memory type classification.
Variants§
DeviceLocal
Device-local memory (fastest for GPU, not CPU-accessible).
HostVisible
Host-visible memory (CPU can read/write, slower for GPU).
HostCached
Host-cached memory (CPU-cached, good for readback).
Unified
Unified memory (shared between CPU and GPU, if available).
Implementations§
Source§impl MkMemoryType
impl MkMemoryType
Sourcepub fn is_host_accessible(&self) -> bool
pub fn is_host_accessible(&self) -> bool
Check if this memory type is CPU-accessible.
Sourcepub fn is_device_local(&self) -> bool
pub fn is_device_local(&self) -> bool
Check if this memory type is device-local.
Trait Implementations§
Source§impl Clone for MkMemoryType
impl Clone for MkMemoryType
Source§fn clone(&self) -> MkMemoryType
fn clone(&self) -> MkMemoryType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MkMemoryType
impl Debug for MkMemoryType
Source§impl Default for MkMemoryType
impl Default for MkMemoryType
Source§impl Hash for MkMemoryType
impl Hash for MkMemoryType
Source§impl PartialEq for MkMemoryType
impl PartialEq for MkMemoryType
impl Copy for MkMemoryType
impl Eq for MkMemoryType
impl StructuralPartialEq for MkMemoryType
Auto Trait Implementations§
impl Freeze for MkMemoryType
impl RefUnwindSafe for MkMemoryType
impl Send for MkMemoryType
impl Sync for MkMemoryType
impl Unpin for MkMemoryType
impl UnwindSafe for MkMemoryType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more