pub enum LayoutRecommendation {
KeepSoa,
SimdFieldSoa,
HotColdSplit,
}Expand description
A layout the LayoutAdvisor can recommend for a component.
Variants§
KeepSoa
Keep the default Soa column — nothing observed warrants a change.
SimdFieldSoa
A lean component swept in large batches: a candidate for the field-SoA
wide::f32x8 kernels if its hot loop is compute-bound and stays
SoA-resident (see khora_core::math::simd).
HotColdSplit
A fat component: a candidate for a hot/cold field split so the per-frame sweep drags only the hot bytes through cache.
Implementations§
Trait Implementations§
Source§impl Clone for LayoutRecommendation
impl Clone for LayoutRecommendation
Source§fn clone(&self) -> LayoutRecommendation
fn clone(&self) -> LayoutRecommendation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutRecommendation
impl Debug for LayoutRecommendation
Source§impl PartialEq for LayoutRecommendation
impl PartialEq for LayoutRecommendation
Source§fn eq(&self, other: &LayoutRecommendation) -> bool
fn eq(&self, other: &LayoutRecommendation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LayoutRecommendation
impl Eq for LayoutRecommendation
impl StructuralPartialEq for LayoutRecommendation
Auto Trait Implementations§
impl Freeze for LayoutRecommendation
impl RefUnwindSafe for LayoutRecommendation
impl Send for LayoutRecommendation
impl Sync for LayoutRecommendation
impl Unpin for LayoutRecommendation
impl UnsafeUnpin for LayoutRecommendation
impl UnwindSafe for LayoutRecommendation
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.