pub struct SubtreePartitionPlanner { /* private fields */ }Expand description
Subtree partitioner splitting a SceneTree into CPU chrome/prose subtrees and GPU compute subtrees.
Implementations§
Source§impl SubtreePartitionPlanner
Partition planning and boundary management methods for SubtreePartitionPlanner.
impl SubtreePartitionPlanner
Partition planning and boundary management methods for SubtreePartitionPlanner.
Sourcepub fn with_config(config: SubtreePartitionConfig) -> Self
pub fn with_config(config: SubtreePartitionConfig) -> Self
Sourcepub fn register_boundary(&mut self, boundary: LayoutBoundary)
pub fn register_boundary(&mut self, boundary: LayoutBoundary)
Registers or replaces a containment LayoutBoundary for its root_node.
§Arguments
LayoutBoundary- Containment boundary descriptor.
Sourcepub fn clear_boundaries(&mut self)
pub fn clear_boundaries(&mut self)
Removes all registered explicit containment boundaries.
Sourcepub fn plan_tree(&self, tree: &SceneTree) -> SubtreePartitionPlan
pub fn plan_tree(&self, tree: &SceneTree) -> SubtreePartitionPlan
Source§impl SubtreePartitionPlanner
impl SubtreePartitionPlanner
pub fn get_config(&self) -> SubtreePartitionConfig
pub fn get_mut_config(&mut self) -> &mut SubtreePartitionConfig
pub fn set_config(&mut self, val: SubtreePartitionConfig) -> &mut Self
pub fn get_boundaries(&self) -> &HashMap<NodeId, LayoutBoundary>
pub fn get_mut_boundaries(&mut self) -> &mut HashMap<NodeId, LayoutBoundary>
pub fn set_boundaries( &mut self, val: HashMap<NodeId, LayoutBoundary>, ) -> &mut Self
Trait Implementations§
Source§impl Clone for SubtreePartitionPlanner
impl Clone for SubtreePartitionPlanner
Source§impl Debug for SubtreePartitionPlanner
impl Debug for SubtreePartitionPlanner
Auto Trait Implementations§
impl Forget for SubtreePartitionPlanner
impl Freeze for SubtreePartitionPlanner
impl Move for SubtreePartitionPlanner
impl RefUnwindSafe for SubtreePartitionPlanner
impl Send for SubtreePartitionPlanner
impl Sync for SubtreePartitionPlanner
impl Unpin for SubtreePartitionPlanner
impl UnsafeUnpin for SubtreePartitionPlanner
impl UnwindSafe for SubtreePartitionPlanner
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