[−][src]Enum gfx_memory::MemoryUsage
Scenarios of how resources use memory.
Variants
Full speed GPU access. Optimal for render targets and persistent resources. Avoid memory with host access.
CPU to GPU data flow with update commands. Used for dynamic buffer data, typically constant buffers. Host access is guaranteed. Prefers memory with fast GPU access.
Fields of Dynamic
sparse_updates: bool
Optimize for multiple disjoint small portions to be updated, as opposed to big linear chunks of memory.
CPU to GPU data flow with mapping.
Used for staging data before copying to the Data
memory.
Host access is guaranteed.
Fields of Staging
read_back: bool
Optimize for reading back from Gpu.
Methods
impl MemoryUsage
[src]
pub fn properties_required(&self) -> Properties
[src]
Set of required memory properties for this usage.
Trait Implementations
impl Clone for MemoryUsage
[src]
fn clone(&self) -> MemoryUsage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MemoryUsage
[src]
impl Debug for MemoryUsage
[src]
impl PartialEq<MemoryUsage> for MemoryUsage
[src]
fn eq(&self, other: &MemoryUsage) -> bool
[src]
fn ne(&self, other: &MemoryUsage) -> bool
[src]
impl StructuralPartialEq for MemoryUsage
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryUsage
impl Send for MemoryUsage
impl Sync for MemoryUsage
impl Unpin for MemoryUsage
impl UnwindSafe for MemoryUsage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,