pub struct SceneLayoutSoa { /* private fields */ }Expand description
Dense Send + Sync Structure-of-Arrays (SoA) layout, text, visual, and GPU compute staging snapshot extracted from SceneTree.
Implementations§
Source§impl SceneLayoutSoa
Incremental SceneTree extraction, GPU compute input packing, and box write-back for SceneLayoutSoa.
impl SceneLayoutSoa
Incremental SceneTree extraction, GPU compute input packing, and box write-back for SceneLayoutSoa.
Sourcepub fn text_for_arena(&self, arena_index: usize) -> &str
pub fn text_for_arena(&self, arena_index: usize) -> &str
Sourcepub fn sync_from_tree(&mut self, tree: &SceneTree) -> SoaSyncMode
pub fn sync_from_tree(&mut self, tree: &SceneTree) -> SoaSyncMode
Sourcepub fn sync_gpu_outputs_from_boxes(&mut self)
pub fn sync_gpu_outputs_from_boxes(&mut self)
Mirrors updated arena-indexed layout_boxes into BFS-ordered gpu_outputs for downstream GPU indirect rendering.
Sourcepub fn to_gpu_compute_scene(
&self,
viewport_width: f32,
viewport_height: f32,
dt_secs: f32,
) -> GpuComputeSceneInput
pub fn to_gpu_compute_scene( &self, viewport_width: f32, viewport_height: f32, dt_secs: f32, ) -> GpuComputeSceneInput
Exports this synchronized SceneLayoutSoa directly into a GpuComputeSceneInput sharing the exact unified GpuLayoutNodeInput and GpuVisualStyleInput ABI.
§Arguments
f32- Physical viewport width in pixels.f32- Physical viewport height in pixels.f32- Simulation frame delta time in seconds.
§Returns
GpuComputeSceneInput- Ready-to-dispatch compute layout scene mirroringtopologyandgpu_visuals.
Source§impl SceneLayoutSoa
Implements impl #impl_generics #name #ty_generics #where_clause.
impl SceneLayoutSoa
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_synced_revision(&self) -> u64
pub fn get_mut_synced_revision(&mut self) -> &mut u64
pub fn set_synced_revision(&mut self, val: u64) -> &mut Self
pub fn get_synced_topology_revision(&self) -> u64
pub fn get_mut_synced_topology_revision(&mut self) -> &mut u64
pub fn set_synced_topology_revision(&mut self, val: u64) -> &mut Self
pub fn get_synced_serial_epoch(&self) -> u64
pub fn get_mut_synced_serial_epoch(&mut self) -> &mut u64
pub fn set_synced_serial_epoch(&mut self, val: u64) -> &mut Self
pub fn get_last_sync_mode(&self) -> SoaSyncMode
pub fn get_mut_last_sync_mode(&mut self) -> &mut SoaSyncMode
pub fn set_last_sync_mode(&mut self, val: SoaSyncMode) -> &mut Self
pub fn get_topology(&self) -> &FlatBfsTopology
pub fn get_mut_topology(&mut self) -> &mut FlatBfsTopology
pub fn set_topology(&mut self, val: FlatBfsTopology) -> &mut Self
pub fn get_node_ids(&self) -> &Vec<NodeId>
pub fn get_mut_node_ids(&mut self) -> &mut Vec<NodeId>
pub fn set_node_ids(&mut self, val: Vec<NodeId>) -> &mut Self
pub fn get_node_kinds(&self) -> &Vec<SoaNodeKindTag>
pub fn get_mut_node_kinds(&mut self) -> &mut Vec<SoaNodeKindTag>
pub fn set_node_kinds(&mut self, val: Vec<SoaNodeKindTag>) -> &mut Self
pub fn get_layout_styles(&self) -> &Vec<LayoutStyle>
pub fn get_mut_layout_styles(&mut self) -> &mut Vec<LayoutStyle>
pub fn set_layout_styles(&mut self, val: Vec<LayoutStyle>) -> &mut Self
pub fn get_text_styles(&self) -> &Vec<TextStyle>
pub fn get_mut_text_styles(&mut self) -> &mut Vec<TextStyle>
pub fn set_text_styles(&mut self, val: Vec<TextStyle>) -> &mut Self
pub fn get_border_widths(&self) -> &Vec<f32>
pub fn get_mut_border_widths(&mut self) -> &mut Vec<f32>
pub fn set_border_widths(&mut self, val: Vec<f32>) -> &mut Self
pub fn get_transforms(&self) -> &Vec<Transform2D>
pub fn get_mut_transforms(&mut self) -> &mut Vec<Transform2D>
pub fn set_transforms(&mut self, val: Vec<Transform2D>) -> &mut Self
pub fn get_layout_boxes(&self) -> &Vec<LayoutBox>
pub fn get_mut_layout_boxes(&mut self) -> &mut Vec<LayoutBox>
pub fn set_layout_boxes(&mut self, val: Vec<LayoutBox>) -> &mut Self
pub fn get_dirty_masks(&self) -> &Vec<u16>
pub fn get_mut_dirty_masks(&mut self) -> &mut Vec<u16>
pub fn set_dirty_masks(&mut self, val: Vec<u16>) -> &mut Self
pub fn get_synced_node_epochs(&self) -> &Vec<u32>
pub fn get_mut_synced_node_epochs(&mut self) -> &mut Vec<u32>
pub fn set_synced_node_epochs(&mut self, val: Vec<u32>) -> &mut Self
pub fn get_text_slices(&self) -> &Vec<SoaTextSlice>
pub fn get_mut_text_slices(&mut self) -> &mut Vec<SoaTextSlice>
pub fn set_text_slices(&mut self, val: Vec<SoaTextSlice>) -> &mut Self
pub fn get_text_bytes(&self) -> &Vec<u8> ⓘ
pub fn get_mut_text_bytes(&mut self) -> &mut Vec<u8> ⓘ
pub fn set_text_bytes(&mut self, val: Vec<u8>) -> &mut Self
pub fn get_image_sizes(&self) -> &Vec<Size>
pub fn get_mut_image_sizes(&mut self) -> &mut Vec<Size>
pub fn set_image_sizes(&mut self, val: Vec<Size>) -> &mut Self
pub fn get_gpu_inputs(&self) -> &Vec<GpuLayoutNodeInput>
pub fn get_mut_gpu_inputs(&mut self) -> &mut Vec<GpuLayoutNodeInput>
pub fn set_gpu_inputs(&mut self, val: Vec<GpuLayoutNodeInput>) -> &mut Self
pub fn get_gpu_outputs(&self) -> &Vec<GpuLayoutNodeOutput>
pub fn get_mut_gpu_outputs(&mut self) -> &mut Vec<GpuLayoutNodeOutput>
pub fn set_gpu_outputs(&mut self, val: Vec<GpuLayoutNodeOutput>) -> &mut Self
pub fn get_gpu_visuals(&self) -> &Vec<GpuVisualStyleInput>
pub fn get_mut_gpu_visuals(&mut self) -> &mut Vec<GpuVisualStyleInput>
pub fn set_gpu_visuals(&mut self, val: Vec<GpuVisualStyleInput>) -> &mut Self
pub fn get_input_dirty_spans(&self) -> &DirtySpanCoalescer
pub fn get_mut_input_dirty_spans(&mut self) -> &mut DirtySpanCoalescer
pub fn set_input_dirty_spans(&mut self, val: DirtySpanCoalescer) -> &mut Self
pub fn get_visual_dirty_spans(&self) -> &DirtySpanCoalescer
pub fn get_mut_visual_dirty_spans(&mut self) -> &mut DirtySpanCoalescer
pub fn set_visual_dirty_spans(&mut self, val: DirtySpanCoalescer) -> &mut Self
Trait Implementations§
Source§impl Clone for SceneLayoutSoa
impl Clone for SceneLayoutSoa
Source§impl Debug for SceneLayoutSoa
impl Debug for SceneLayoutSoa
Auto Trait Implementations§
impl Forget for SceneLayoutSoa
impl Freeze for SceneLayoutSoawhere
*const u8 is !null: Freeze,
PhantomData<u32>: Freeze,
PhantomData<NodeId>: Freeze,
PhantomData<SoaNodeKindTag>: Freeze,
PhantomData<LayoutStyle>: Freeze,
PhantomData<TextStyle>: Freeze,
PhantomData<f32>: Freeze,
PhantomData<Transform2D>: Freeze,
PhantomData<LayoutBox>: Freeze,
PhantomData<u16>: Freeze,
PhantomData<SoaTextSlice>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Size>: Freeze,
PhantomData<GpuLayoutNodeInput>: Freeze,
PhantomData<GpuLayoutNodeOutput>: Freeze,
PhantomData<GpuVisualStyleInput>: Freeze,
PhantomData<DirtyBufferSpan>: Freeze,
PhantomData<GpuPrimitiveInstance>: Freeze,
impl Move for SceneLayoutSoa
impl RefUnwindSafe for SceneLayoutSoa
impl Send for SceneLayoutSoawhere
RawVecInner: Send,
impl Sync for SceneLayoutSoawhere
RawVecInner: Sync,
impl Unpin for SceneLayoutSoa
impl UnsafeUnpin for SceneLayoutSoawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<NodeId>: UnsafeUnpin,
PhantomData<SoaNodeKindTag>: UnsafeUnpin,
PhantomData<LayoutStyle>: UnsafeUnpin,
PhantomData<TextStyle>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<Transform2D>: UnsafeUnpin,
PhantomData<LayoutBox>: UnsafeUnpin,
PhantomData<u16>: UnsafeUnpin,
PhantomData<SoaTextSlice>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Size>: UnsafeUnpin,
PhantomData<GpuLayoutNodeInput>: UnsafeUnpin,
PhantomData<GpuLayoutNodeOutput>: UnsafeUnpin,
PhantomData<GpuVisualStyleInput>: UnsafeUnpin,
PhantomData<DirtyBufferSpan>: UnsafeUnpin,
PhantomData<GpuPrimitiveInstance>: UnsafeUnpin,
impl UnwindSafe for SceneLayoutSoawhere
RawVecInner: UnwindSafe,
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