struct GpuScratch {
pool: DecoderPool,
spare: Vec<Frame>,
shapes: ShapeRasterizer,
comp: Compositor,
}Expand description
Decoder state for the GPU export path: the same layer decoding the player does, on this thread.
Fields§
§pool: DecoderPool§spare: Vec<Frame>§shapes: ShapeRasterizer§comp: CompositorImplementations§
Source§impl GpuScratch
impl GpuScratch
fn new(backend: Backend) -> Self
Sourcefn render(
&mut self,
project: &Project,
t: f64,
w: u32,
h: u32,
tx: &Sender<GpuFrameRequest>,
text: &Arc<Mutex<TextRasterizer>>,
) -> Option<Frame>
fn render( &mut self, project: &Project, t: f64, w: u32, h: u32, tx: &Sender<GpuFrameRequest>, text: &Arc<Mutex<TextRasterizer>>, ) -> Option<Frame>
Decode the layers for t and have the UI thread composite them. None = give up on the GPU path
(renderer gone, UI not answering within 5 s, or the request channel closed).
Auto Trait Implementations§
impl Freeze for GpuScratch
impl !RefUnwindSafe for GpuScratch
impl Send for GpuScratch
impl !Sync for GpuScratch
impl Unpin for GpuScratch
impl !UnwindSafe for GpuScratch
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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