#[non_exhaustive]pub enum MemoryKind {
Device,
Upload,
Readback,
}Expand description
where a buffer’s memory lives
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.
Device
GPU memory (fastest for the GPU; filled by copies or Queue::write_buffer)
Upload
CPU memory the GPU reads (staging, per-frame data; Buffer::write)
Readback
CPU memory the GPU writes (results; Buffer::read)
Trait Implementations§
Source§impl Clone for MemoryKind
impl Clone for MemoryKind
impl Copy for MemoryKind
Source§impl Debug for MemoryKind
impl Debug for MemoryKind
impl Eq for MemoryKind
Source§impl PartialEq for MemoryKind
impl PartialEq for MemoryKind
impl StructuralPartialEq for MemoryKind
Auto Trait Implementations§
impl Forget for MemoryKind
impl Freeze for MemoryKind
impl RefUnwindSafe for MemoryKind
impl Send for MemoryKind
impl Sync for MemoryKind
impl Unpin for MemoryKind
impl UnsafeUnpin for MemoryKind
impl UnwindSafe for MemoryKind
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