struct Layout {
depth: usize,
axis_count: usize,
index_count: usize,
region_count: usize,
leaf: usize,
}Expand description
The size of a composite’s working memory and how it is split.
A single buffer from the caller holds every slice that the walk uses. The slices are taken in descending order of alignment so that only the first one can need padding. The memory for drawing leaves comes last.
Fields§
§depth: usizeThe nesting depth of the composites, at least one.
axis_count: usize§index_count: usizeThe length of the longest axis index list, which sizes the axis indices, their values and their deltas.
region_count: usize§leaf: usizeThe size in bytes of the memory needed by the largest leaf.
Implementations§
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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