pub enum CapturedFrame {
CpuBuffer {
data: Vec<u8>,
width: u32,
height: u32,
stride: u32,
format: TextureFormat,
},
}Expand description
Handle to a captured frame, ready for the encoder.
Variants§
CpuBuffer
Raw pixel data in CPU memory (from staging buffer path).
Implementations§
Source§impl CapturedFrame
impl CapturedFrame
Sourcepub fn diagnostic_checksum(&self) -> Result<Option<FrameChecksum>, CaptureError>
pub fn diagnostic_checksum(&self) -> Result<Option<FrameChecksum>, CaptureError>
Compute a diagnostic checksum over canonical RGBA8 bytes when CPU pixel data is available.
Auto Trait Implementations§
impl Freeze for CapturedFrame
impl RefUnwindSafe for CapturedFrame
impl Send for CapturedFrame
impl Sync for CapturedFrame
impl Unpin for CapturedFrame
impl UnsafeUnpin for CapturedFrame
impl UnwindSafe for CapturedFrame
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