cranpose-render-wgpu 0.25.0

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