pub struct MemLayout {
pub align: u32,
pub legacy_align: u32,
pub size: u32,
}Expand description
Untyped memory shape with constant alignment and size.
align/legacy_align correspond to “scalar”/“base” alignments in Vulkan,
and are both kept track of to detect ambiguity in implicit layouts, e.g.
field offsets when the Offset decoration isn’t being used.
Note, however, that legacy_align can be raised to “extended” alignment,
or completeley ignored, using LayoutConfig.
Only align is required, that is size % align == 0 must be always enforced.
Fields§
§align: u32§legacy_align: u32§size: u32Trait Implementations§
source§impl PartialEq<MemLayout> for MemLayout
impl PartialEq<MemLayout> for MemLayout
impl Copy for MemLayout
impl Eq for MemLayout
impl StructuralEq for MemLayout
impl StructuralPartialEq for MemLayout
Auto Trait Implementations§
impl RefUnwindSafe for MemLayout
impl Send for MemLayout
impl Sync for MemLayout
impl Unpin for MemLayout
impl UnwindSafe for MemLayout
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.