cranpose_render_wgpu/captured_frame.rs
1/// CPU-readable RGBA frame captured from the renderer output.
2#[derive(Debug, Clone)]
3pub struct CapturedFrame {
4 /// Width of the frame in device pixels.
5 pub width: u32,
6 /// Height of the frame in device pixels.
7 pub height: u32,
8 /// The pixels as 8-bit RGBA, row by row from the top left, `width * height * 4` bytes.
9 pub pixels: Vec<u8>,
10 /// The renderer's account of the frame it drew for the capture, such as
11 /// the placeholders it drew for pipelines that still compile.
12 pub stats: Option<crate::RenderStatsSnapshot>,
13}