pub struct Scene {
pub root_pipeline_id: Option<PipelineId>,
pub pipelines: FastHashMap<PipelineId, ScenePipeline>,
pub pipeline_epochs: FastHashMap<PipelineId, Epoch>,
}
Expand description
A complete representation of the layout bundling visible pipelines together.
Fields§
§root_pipeline_id: Option<PipelineId>
§pipelines: FastHashMap<PipelineId, ScenePipeline>
§pipeline_epochs: FastHashMap<PipelineId, Epoch>
Implementations§
source§impl Scene
impl Scene
pub fn new() -> Self
pub fn set_root_pipeline_id(&mut self, pipeline_id: PipelineId)
pub fn set_display_list( &mut self, pipeline_id: PipelineId, epoch: Epoch, display_list: BuiltDisplayList, )
pub fn remove_pipeline(&mut self, pipeline_id: PipelineId)
pub fn update_epoch(&mut self, pipeline_id: PipelineId, epoch: Epoch)
pub fn has_root_pipeline(&self) -> bool
pub fn report_memory( &self, ops: &mut MallocSizeOfOps, report: &mut MemoryReport, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scene
impl RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin for Scene
impl UnwindSafe for Scene
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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