[][src]Struct vulkano::memory::MemoryRequirements

pub struct MemoryRequirements {
    pub size: usize,
    pub alignment: usize,
    pub memory_type_bits: u32,
    pub prefer_dedicated: bool,
}

Represents requirements expressed by the Vulkan implementation when it comes to binding memory to a resource.

Fields

size: usize

Number of bytes of memory required.

alignment: usize

Alignment of the requirement buffer. The base memory address must be a multiple of this value.

memory_type_bits: u32

Indicates which memory types can be used. Each bit that is set to 1 means that the memory type whose index is the same as the position of the bit can be used.

prefer_dedicated: bool

True if the implementation prefers to use dedicated allocations (in other words, allocate a whole block of memory dedicated to this resource alone). If the khr_get_memory_requirements2 extension isn't enabled, then this will be false.

Note: As its name says, using a dedicated allocation is an optimization and not a requirement.

Trait Implementations

impl Clone for MemoryRequirements[src]

impl Copy for MemoryRequirements[src]

impl Debug for MemoryRequirements[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.