MemoryLocation

Trait MemoryLocation 

Source
pub trait MemoryLocation:
    Clone
    + Send
    + Sync {
    // Required methods
    fn gpu_only() -> Self;
    fn cpu_to_gpu() -> Self;
    fn gpu_to_cpu() -> Self;
}
Expand description

Represents a memory location for AllocationCreateInfo.

Required Methods§

Source

fn gpu_only() -> Self

Source

fn cpu_to_gpu() -> Self

Source

fn gpu_to_cpu() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§