Struct webrender::surface::SurfaceBuilder
source · pub struct SurfaceBuilder {
current_cmd_buffers: CommandBufferTargets,
builder_stack: Vec<CommandBufferBuilder>,
pub sub_graph_output_map: FastHashMap<PictureIndex, RenderTaskId>,
}
Fields§
§current_cmd_buffers: CommandBufferTargets
§builder_stack: Vec<CommandBufferBuilder>
§sub_graph_output_map: FastHashMap<PictureIndex, RenderTaskId>
Implementations§
source§impl SurfaceBuilder
impl SurfaceBuilder
pub fn new() -> Self
sourcepub fn register_resolve_source(&mut self)
pub fn register_resolve_source(&mut self)
Register the current surface as the source of a resolve for the task sub-graph that is currently on the surface builder stack.
pub fn push_surface( &mut self, surface_index: SurfaceIndex, is_sub_graph: bool, clipping_rect: PictureRect, descriptor: SurfaceDescriptor, surfaces: &mut [SurfaceInfo], rg_builder: &RenderTaskGraphBuilder, )
pub fn add_child_render_task( &mut self, child_task_id: RenderTaskId, rg_builder: &mut RenderTaskGraphBuilder, )
pub fn add_picture_render_task(&mut self, child_task_id: RenderTaskId)
pub fn get_cmd_buffer_targets_for_prim( &mut self, vis: &PrimitiveVisibility, targets: &mut Vec<CommandBufferIndex>, ) -> bool
pub fn pop_surface( &mut self, pic_index: PictureIndex, rg_builder: &mut RenderTaskGraphBuilder, cmd_buffers: &mut CommandBufferList, )
pub fn finalize(self)
Auto Trait Implementations§
impl Freeze for SurfaceBuilder
impl RefUnwindSafe for SurfaceBuilder
impl Send for SurfaceBuilder
impl Sync for SurfaceBuilder
impl Unpin for SurfaceBuilder
impl UnwindSafe for SurfaceBuilder
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