Struct webrender::frame_builder::FrameBuildingState
source · pub struct FrameBuildingState<'a> {Show 15 fields
pub rg_builder: &'a mut RenderTaskGraphBuilder,
pub clip_store: &'a mut ClipStore,
pub resource_cache: &'a mut ResourceCache,
pub gpu_cache: &'a mut GpuCache,
pub transforms: &'a mut TransformPalette,
pub segment_builder: SegmentBuilder,
pub surfaces: &'a mut Vec<SurfaceInfo>,
pub dirty_region_stack: Vec<DirtyRegion>,
pub composite_state: &'a mut CompositeState,
pub num_visible_primitives: u32,
pub plane_splitters: &'a mut [BspSplitter<PlaneSplitAnchor>],
pub surface_builder: SurfaceBuilder,
pub cmd_buffers: &'a mut CommandBufferList,
pub clip_tree: &'a ClipTree,
pub frame_gpu_data: &'a mut GpuBufferBuilder,
}
Fields§
§rg_builder: &'a mut RenderTaskGraphBuilder
§clip_store: &'a mut ClipStore
§resource_cache: &'a mut ResourceCache
§gpu_cache: &'a mut GpuCache
§transforms: &'a mut TransformPalette
§segment_builder: SegmentBuilder
§surfaces: &'a mut Vec<SurfaceInfo>
§dirty_region_stack: Vec<DirtyRegion>
§composite_state: &'a mut CompositeState
§num_visible_primitives: u32
§plane_splitters: &'a mut [BspSplitter<PlaneSplitAnchor>]
§surface_builder: SurfaceBuilder
§cmd_buffers: &'a mut CommandBufferList
§clip_tree: &'a ClipTree
§frame_gpu_data: &'a mut GpuBufferBuilder
Implementations§
source§impl<'a> FrameBuildingState<'a>
impl<'a> FrameBuildingState<'a>
sourcepub fn current_dirty_region(&self) -> &DirtyRegion
pub fn current_dirty_region(&self) -> &DirtyRegion
Retrieve the current dirty region during primitive traversal.
sourcepub fn push_dirty_region(&mut self, region: DirtyRegion)
pub fn push_dirty_region(&mut self, region: DirtyRegion)
Push a new dirty region for child primitives to cull / clip against.
sourcepub fn pop_dirty_region(&mut self)
pub fn pop_dirty_region(&mut self)
Pop the top dirty region from the stack.
sourcepub fn push_prim(
&mut self,
cmd: &PrimitiveCommand,
spatial_node_index: SpatialNodeIndex,
targets: &[CommandBufferIndex],
)
pub fn push_prim( &mut self, cmd: &PrimitiveCommand, spatial_node_index: SpatialNodeIndex, targets: &[CommandBufferIndex], )
Push a primitive command to a set of command buffers
sourcepub fn push_cmd(
&mut self,
cmd: &PrimitiveCommand,
targets: &[CommandBufferIndex],
)
pub fn push_cmd( &mut self, cmd: &PrimitiveCommand, targets: &[CommandBufferIndex], )
Push a command to a set of command buffers
sourcepub fn set_segments(
&mut self,
segments: &[QuadSegment],
targets: &[CommandBufferIndex],
)
pub fn set_segments( &mut self, segments: &[QuadSegment], targets: &[CommandBufferIndex], )
Set the active list of segments in a set of command buffers
Auto Trait Implementations§
impl<'a> Freeze for FrameBuildingState<'a>
impl<'a> !RefUnwindSafe for FrameBuildingState<'a>
impl<'a> !Send for FrameBuildingState<'a>
impl<'a> !Sync for FrameBuildingState<'a>
impl<'a> Unpin for FrameBuildingState<'a>
impl<'a> !UnwindSafe for FrameBuildingState<'a>
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> 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