[−][src]Struct vulkano::memory::MemoryRequirements
Represents requirements expressed by the Vulkan implementation when it comes to binding memory to a resource.
Fields
size: usizeNumber of bytes of memory required.
alignment: usizeAlignment of the requirement buffer. The base memory address must be a multiple of this value.
memory_type_bits: u32Indicates 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: boolTrue 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]
fn clone(&self) -> MemoryRequirements[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for MemoryRequirements[src]
impl Debug for MemoryRequirements[src]
Auto Trait Implementations
impl Send for MemoryRequirements
impl Unpin for MemoryRequirements
impl Sync for MemoryRequirements
impl UnwindSafe for MemoryRequirements
impl RefUnwindSafe for MemoryRequirements
Blanket Implementations
impl<T> Content for T[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>[src]
fn is_size_suitable(usize) -> bool[src]
fn indiv_size() -> usize[src]
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> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,