#[repr(C, align(64))]pub struct BankedConstituentLut {
pub entries: [Q42ConstituentLutEntry; 256],
pub active_bank_1_epoch_id: u16,
pub is_dirty: bool,
}Expand description
Three-Bank 16-KB Constituent Look-Up Table Manager.
Fields§
§entries: [Q42ConstituentLutEntry; 256]16 KB flat buffer of 256 constituent entries.
active_bank_1_epoch_id: u16Epoch identifier of the currently loaded Bank 1 recipe set.
is_dirty: boolDirty flag indicating a GPU DMA re-upload is required.
Implementations§
Source§impl BankedConstituentLut
impl BankedConstituentLut
Sourcepub fn new_with_terrestrial_defaults() -> Self
pub fn new_with_terrestrial_defaults() -> Self
Initialize with certified Australian & terrestrial mineral baseline in Bank 0.
Sourcepub fn page_bank_1(
&mut self,
epoch_id: u16,
paged_recipes: &[Q42ConstituentLutEntry; 96],
) -> Result<(), M64Error>
pub fn page_bank_1( &mut self, epoch_id: u16, paged_recipes: &[Q42ConstituentLutEntry; 96], ) -> Result<(), M64Error>
Dynamically page Bank 1 (slots 128..223, 6 KB) without modifying Bank 0 or Bank 2.
Sourcepub fn as_gpu_bytes(&self) -> &[u8] ⓘ
pub fn as_gpu_bytes(&self) -> &[u8] ⓘ
Zero-copy cast into uniform/storage buffer upload byte slice (16,384 bytes).
Sourcepub fn entry(&self, index: u8) -> &Q42ConstituentLutEntry
pub fn entry(&self, index: u8) -> &Q42ConstituentLutEntry
Read entry by index (0..255).
Sourcepub fn entry_mut(&mut self, index: u8) -> &mut Q42ConstituentLutEntry
pub fn entry_mut(&mut self, index: u8) -> &mut Q42ConstituentLutEntry
Mutable access to entry by index.
Trait Implementations§
Source§impl Clone for BankedConstituentLut
impl Clone for BankedConstituentLut
Source§impl Debug for BankedConstituentLut
impl Debug for BankedConstituentLut
Auto Trait Implementations§
impl Freeze for BankedConstituentLut
impl RefUnwindSafe for BankedConstituentLut
impl Send for BankedConstituentLut
impl Sync for BankedConstituentLut
impl Unpin for BankedConstituentLut
impl UnsafeUnpin for BankedConstituentLut
impl UnwindSafe for BankedConstituentLut
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.