Struct webrender::surface::CommandBufferTargets
source · struct CommandBufferTargets {
available_cmd_buffers: Vec<Vec<(PictureRect, CommandBufferIndex)>>,
}
Fields§
§available_cmd_buffers: Vec<Vec<(PictureRect, CommandBufferIndex)>>
Implementations§
source§impl CommandBufferTargets
impl CommandBufferTargets
fn new() -> Self
fn init( &mut self, cb: &CommandBufferBuilder, rg_builder: &RenderTaskGraphBuilder, )
sourcefn get_cmd_buffer_targets_for_rect(
&mut self,
rect: &PictureRect,
sub_slice_index: SubSliceIndex,
targets: &mut Vec<CommandBufferIndex>,
) -> bool
fn get_cmd_buffer_targets_for_rect( &mut self, rect: &PictureRect, sub_slice_index: SubSliceIndex, targets: &mut Vec<CommandBufferIndex>, ) -> bool
For a given rect and sub-slice, get a list of command buffers to write commands to
Auto Trait Implementations§
impl Freeze for CommandBufferTargets
impl RefUnwindSafe for CommandBufferTargets
impl Send for CommandBufferTargets
impl Sync for CommandBufferTargets
impl Unpin for CommandBufferTargets
impl UnwindSafe for CommandBufferTargets
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