pub enum Structure {
Grid {
neighborhood: NeighborhoodKind,
},
Agents {
chunk: usize,
lanes: &'static [LaneSpec],
index: &'static str,
field: &'static str,
},
Network {
chunk: usize,
lanes: &'static [LaneSpec],
edge_palette: &'static [[u8; 4]],
},
GpuGrid {
buffers: &'static [&'static str],
workgroup: u32,
},
GpuAgents {
buffers: &'static [BufferSpec],
passes: &'static [PassSpec],
index: bool,
display: bool,
counters: usize,
},
}Expand description
Storage layout of a model, by backend and topology.
Variants§
Grid
A CPU grid model.
Fields
§
neighborhood: NeighborhoodKindNeighbourhood a cell’s rule reads.
Agents
A CPU agent model.
Network
A CPU network model.
Fields
GpuGrid
A GPU grid model.
Fields
GpuAgents
A GPU agent model.
Fields
§
buffers: &'static [BufferSpec]Storage buffers, in declaration order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Structure
impl RefUnwindSafe for Structure
impl Send for Structure
impl Sync for Structure
impl Unpin for Structure
impl UnsafeUnpin for Structure
impl UnwindSafe for Structure
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