pub struct MemoryType<'a> { /* private fields */ }
Expand description

Represents a memory type in a physical device.

Implementations

Returns the physical device associated to this memory type.

Returns the identifier of this memory type within the physical device.

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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
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.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.