Struct vulkano::device::physical::MemoryType [−][src]
pub struct MemoryType<'a> { /* fields omitted */ }
Expand description
Represents a memory type in a physical device.
Implementations
Returns the physical device associated to this memory type.
Returns the heap that corresponds to this memory type.
Returns true if the memory type is located on the device, which means that it’s the most efficient for GPU accesses.
Returns true if the memory type can be accessed by the host.
Returns true if modifications made by the host or the GPU on this memory type are instantaneously visible to the other party. False means that changes have to be flushed.
You don’t need to worry about this, as this library handles that for you.
Returns true if memory of this memory type is cached by the host. Host memory accesses to cached memory is faster than for uncached memory. However you are not guaranteed that it is coherent.
Returns true if allocations made to this memory type is lazy.
This means that no actual allocation is performed. Instead memory is automatically allocated by the Vulkan implementation.
Memory of this type can only be used on images created with a certain flag. Memory of this type is never host-visible.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for MemoryType<'a>
impl<'a> Send for MemoryType<'a>
impl<'a> Sync for MemoryType<'a>
impl<'a> Unpin for MemoryType<'a>
impl<'a> UnwindSafe for MemoryType<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.