Skip to main content

SceneLayoutSoa

Struct SceneLayoutSoa 

Source
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.

Source

pub fn text_for_arena(&self, arena_index: usize) -> &str

Returns the UTF-8 text string slice stored in text_bytes for arena slot arena_index.

§Arguments
  • usize - Scene tree arena slot index.
§Returns
  • &str - Contiguous UTF-8 text payload ("" for non-text nodes).
Source

pub fn sync_from_tree(&mut self, tree: &SceneTree) -> SoaSyncMode

Synchronizes FlatBfsTopology, dense Send + Sync SoA slabs, and GPU dirty-range inputs from tree.

§Arguments
  • &SceneTree - Retained scene tree to mirror into SoA slabs.
§Returns
  • SoaSyncMode - Whether sync was skipped, incremental, or a full topology rebuild.
Source

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.

Source

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 mirroring topology and gpu_visuals.
Source§

impl SceneLayoutSoa

Source

pub fn get_synced_revision(&self) -> u64

Source

pub fn get_mut_synced_revision(&mut self) -> &mut u64

Source

pub fn set_synced_revision(&mut self, val: u64) -> &mut Self

Source

pub fn get_synced_topology_revision(&self) -> u64

Source

pub fn get_mut_synced_topology_revision(&mut self) -> &mut u64

Source

pub fn set_synced_topology_revision(&mut self, val: u64) -> &mut Self

Source

pub fn get_synced_serial_epoch(&self) -> u64

Source

pub fn get_mut_synced_serial_epoch(&mut self) -> &mut u64

Source

pub fn set_synced_serial_epoch(&mut self, val: u64) -> &mut Self

Source

pub fn get_last_sync_mode(&self) -> SoaSyncMode

Source

pub fn get_mut_last_sync_mode(&mut self) -> &mut SoaSyncMode

Source

pub fn set_last_sync_mode(&mut self, val: SoaSyncMode) -> &mut Self

Source

pub fn get_topology(&self) -> &FlatBfsTopology

Source

pub fn get_mut_topology(&mut self) -> &mut FlatBfsTopology

Source

pub fn set_topology(&mut self, val: FlatBfsTopology) -> &mut Self

Source

pub fn get_node_ids(&self) -> &Vec<NodeId>

Source

pub fn get_mut_node_ids(&mut self) -> &mut Vec<NodeId>

Source

pub fn set_node_ids(&mut self, val: Vec<NodeId>) -> &mut Self

Source

pub fn get_node_kinds(&self) -> &Vec<SoaNodeKindTag>

Source

pub fn get_mut_node_kinds(&mut self) -> &mut Vec<SoaNodeKindTag>

Source

pub fn set_node_kinds(&mut self, val: Vec<SoaNodeKindTag>) -> &mut Self

Source

pub fn get_layout_styles(&self) -> &Vec<LayoutStyle>

Source

pub fn get_mut_layout_styles(&mut self) -> &mut Vec<LayoutStyle>

Source

pub fn set_layout_styles(&mut self, val: Vec<LayoutStyle>) -> &mut Self

Source

pub fn get_text_styles(&self) -> &Vec<TextStyle>

Source

pub fn get_mut_text_styles(&mut self) -> &mut Vec<TextStyle>

Source

pub fn set_text_styles(&mut self, val: Vec<TextStyle>) -> &mut Self

Source

pub fn get_border_widths(&self) -> &Vec<f32>

Source

pub fn get_mut_border_widths(&mut self) -> &mut Vec<f32>

Source

pub fn set_border_widths(&mut self, val: Vec<f32>) -> &mut Self

Source

pub fn get_transforms(&self) -> &Vec<Transform2D>

Source

pub fn get_mut_transforms(&mut self) -> &mut Vec<Transform2D>

Source

pub fn set_transforms(&mut self, val: Vec<Transform2D>) -> &mut Self

Source

pub fn get_layout_boxes(&self) -> &Vec<LayoutBox>

Source

pub fn get_mut_layout_boxes(&mut self) -> &mut Vec<LayoutBox>

Source

pub fn set_layout_boxes(&mut self, val: Vec<LayoutBox>) -> &mut Self

Source

pub fn get_dirty_masks(&self) -> &Vec<u16>

Source

pub fn get_mut_dirty_masks(&mut self) -> &mut Vec<u16>

Source

pub fn set_dirty_masks(&mut self, val: Vec<u16>) -> &mut Self

Source

pub fn get_synced_node_epochs(&self) -> &Vec<u32>

Source

pub fn get_mut_synced_node_epochs(&mut self) -> &mut Vec<u32>

Source

pub fn set_synced_node_epochs(&mut self, val: Vec<u32>) -> &mut Self

Source

pub fn get_text_slices(&self) -> &Vec<SoaTextSlice>

Source

pub fn get_mut_text_slices(&mut self) -> &mut Vec<SoaTextSlice>

Source

pub fn set_text_slices(&mut self, val: Vec<SoaTextSlice>) -> &mut Self

Source

pub fn get_text_bytes(&self) -> &Vec<u8> ⓘ

Source

pub fn get_mut_text_bytes(&mut self) -> &mut Vec<u8> ⓘ

Source

pub fn set_text_bytes(&mut self, val: Vec<u8>) -> &mut Self

Source

pub fn get_image_sizes(&self) -> &Vec<Size>

Source

pub fn get_mut_image_sizes(&mut self) -> &mut Vec<Size>

Source

pub fn set_image_sizes(&mut self, val: Vec<Size>) -> &mut Self

Source

pub fn get_gpu_inputs(&self) -> &Vec<GpuLayoutNodeInput>

Source

pub fn get_mut_gpu_inputs(&mut self) -> &mut Vec<GpuLayoutNodeInput>

Source

pub fn set_gpu_inputs(&mut self, val: Vec<GpuLayoutNodeInput>) -> &mut Self

Source

pub fn get_gpu_outputs(&self) -> &Vec<GpuLayoutNodeOutput>

Source

pub fn get_mut_gpu_outputs(&mut self) -> &mut Vec<GpuLayoutNodeOutput>

Source

pub fn set_gpu_outputs(&mut self, val: Vec<GpuLayoutNodeOutput>) -> &mut Self

Source

pub fn get_gpu_visuals(&self) -> &Vec<GpuVisualStyleInput>

Source

pub fn get_mut_gpu_visuals(&mut self) -> &mut Vec<GpuVisualStyleInput>

Source

pub fn set_gpu_visuals(&mut self, val: Vec<GpuVisualStyleInput>) -> &mut Self

Source

pub fn get_input_dirty_spans(&self) -> &DirtySpanCoalescer

Source

pub fn get_mut_input_dirty_spans(&mut self) -> &mut DirtySpanCoalescer

Source

pub fn set_input_dirty_spans(&mut self, val: DirtySpanCoalescer) -> &mut Self

Source

pub fn get_visual_dirty_spans(&self) -> &DirtySpanCoalescer

Source

pub fn get_mut_visual_dirty_spans(&mut self) -> &mut DirtySpanCoalescer

Source

pub fn set_visual_dirty_spans(&mut self, val: DirtySpanCoalescer) -> &mut Self

Trait Implementations§

Source§

impl Clone for SceneLayoutSoa

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SceneLayoutSoa

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SceneLayoutSoa

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Forget for SceneLayoutSoa

§

impl Freeze for SceneLayoutSoa

§

impl Move for SceneLayoutSoa

§

impl RefUnwindSafe for SceneLayoutSoa

§

impl Send for SceneLayoutSoa
where RawVecInner: Send,

§

impl Sync for SceneLayoutSoa
where RawVecInner: Sync,

§

impl Unpin for SceneLayoutSoa
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for SceneLayoutSoa

§

impl UnwindSafe for SceneLayoutSoa
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.