pub struct RecordedRenderScene { /* private fields */ }Expand description
A collection of render operations for a composed scene.
Implementations§
Source§impl RecordedRenderScene
impl RecordedRenderScene
pub fn new(operations: Vec<RenderOp>) -> Self
Sourcepub fn operations(&self) -> &[RenderOp]
pub fn operations(&self) -> &[RenderOp]
Returns a slice of recorded render operations in submission order.
Sourcepub fn into_operations(self) -> Vec<RenderOp>
pub fn into_operations(self) -> Vec<RenderOp>
Consumes the scene and yields the owned operations.
Sourcepub fn primitives_for(
&self,
layer: PaintLayer,
) -> impl Iterator<Item = &DrawPrimitive>
pub fn primitives_for( &self, layer: PaintLayer, ) -> impl Iterator<Item = &DrawPrimitive>
Returns an iterator over primitives that target the provided paint layer.
Trait Implementations§
Source§impl Clone for RecordedRenderScene
impl Clone for RecordedRenderScene
Source§fn clone(&self) -> RecordedRenderScene
fn clone(&self) -> RecordedRenderScene
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordedRenderScene
impl Debug for RecordedRenderScene
Source§impl Default for RecordedRenderScene
impl Default for RecordedRenderScene
Source§fn default() -> RecordedRenderScene
fn default() -> RecordedRenderScene
Returns the “default value” for a type. Read more
Source§impl PartialEq for RecordedRenderScene
impl PartialEq for RecordedRenderScene
impl StructuralPartialEq for RecordedRenderScene
Auto Trait Implementations§
impl Freeze for RecordedRenderScene
impl RefUnwindSafe for RecordedRenderScene
impl Send for RecordedRenderScene
impl Sync for RecordedRenderScene
impl Unpin for RecordedRenderScene
impl UnwindSafe for RecordedRenderScene
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