pub struct StagingCapture { /* private fields */ }Expand description
Cross-platform frame capture using GPU→CPU staging buffers.
Uses a ring of staging buffers to overlap capture of frame N with encoding of frame N-1 and rendering of frame N+1.
Implementations§
Trait Implementations§
Source§impl FrameCapture for StagingCapture
impl FrameCapture for StagingCapture
Source§fn capture(
&mut self,
_instance: &Instance,
device: &Device,
queue: &Queue,
texture: &Texture,
) -> Result<CapturedFrame, CaptureError>
fn capture( &mut self, _instance: &Instance, device: &Device, queue: &Queue, texture: &Texture, ) -> Result<CapturedFrame, CaptureError>
Capture the current render target contents.
Auto Trait Implementations§
impl Freeze for StagingCapture
impl !RefUnwindSafe for StagingCapture
impl Send for StagingCapture
impl Sync for StagingCapture
impl Unpin for StagingCapture
impl UnsafeUnpin for StagingCapture
impl !UnwindSafe for StagingCapture
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