Struct webrender::command_buffer::CommandBufferBuilder
source · pub struct CommandBufferBuilder {
pub kind: CommandBufferBuilderKind,
pub establishes_sub_graph: bool,
pub resolve_source: Option<RenderTaskId>,
pub extra_dependencies: Vec<RenderTaskId>,
}
Fields§
§kind: CommandBufferBuilderKind
§establishes_sub_graph: bool
If a command buffer establishes a sub-graph, then at the end of constructing the surface, the parent surface is supplied as an input dependency, and the parent surface gets a duplicated (existing) task with the same location, and with the sub-graph output as an input dependency.
resolve_source: Option<RenderTaskId>
If this surface builds a sub-graph, it will mark a task in the filter sub-graph as a resolve source for the input from the parent surface.
extra_dependencies: Vec<RenderTaskId>
List of render tasks that depend on the task that will be created for this builder.
Implementations§
source§impl CommandBufferBuilder
impl CommandBufferBuilder
pub fn empty() -> Self
sourcepub fn new_tiled(tiles: FastHashMap<TileKey, SurfaceTileDescriptor>) -> Self
pub fn new_tiled(tiles: FastHashMap<TileKey, SurfaceTileDescriptor>) -> Self
Construct a tiled command buffer builder.
sourcepub fn new_simple(
render_task_id: RenderTaskId,
establishes_sub_graph: bool,
root_task_id: Option<RenderTaskId>,
dirty_rect: PictureRect,
) -> Self
pub fn new_simple( render_task_id: RenderTaskId, establishes_sub_graph: bool, root_task_id: Option<RenderTaskId>, dirty_rect: PictureRect, ) -> Self
Construct a simple command buffer builder.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandBufferBuilder
impl RefUnwindSafe for CommandBufferBuilder
impl Send for CommandBufferBuilder
impl Sync for CommandBufferBuilder
impl Unpin for CommandBufferBuilder
impl UnwindSafe for CommandBufferBuilder
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