denise-wgpu 0.21.1
“A GPU painter for Denise on wgpu — the desktop implementation of the painting trait that is not the software rasteriser.”
Archive ships a root-level test treeRust test marker or harness
SHA-256e51ae10e504b8638c71d0524b418211ee8e3bc59835f67912b085de1bb13eb65
MaleculeH(F)Md(Pa₂)
Evidence
10:19… n the window instead of a `denise-winit` frame, and
11//! `Ui::paint_with` instead of `Ui::paint`. `--snapshot` draws the same tree
12//! headless and writes a PPM, which needs no display at all.
13
14use std::sync::Arc;
⋯4 lines
154:35… _pixels()?;
155
156 let mut out = std::io::BufWriter::new(std::fs::File::create(path)?);
157 write!(out, "P6\n{} {}\n255\n", size.width, size.height)?;
158 for word in &pixels {
159 out.write_all(&[(word >> 16) as u8, (word >> 8) as u8, *word as u8])? …
177 started: Instant,
178 pointer: Point,
179}
180
181impl Live {
182 fn open(event_loop: &ActiveEventLoop) -> Result<Self, Box<dyn std::error::Error>> {
183 let attrs = Window::default_attributes()
184 …
157:14… -------------------------------------------------------- exact
158
159#[test]
160fn solid_rectangles_are_identical() {
161 let Some((sw, hw)) = both(|p| {
162 p.fill_rect(Rect::new(10, 10, 60, 40), Color: …
1513:7… doctest)]
1514#[doc = include_str!("../README.md")]
1515struct Readme;
1516
1517#[cfg(test)]
1518mod tests {
1519 use super::*;
1520
1521 #[test]
1522 fn paint_converts_to_premultiplied_floats() {
1523 let c = rgba(Paint::new(Color::rgba(255, 0, 0, 128)));
⋯5 lines
No evidence locations were recorded for this file. Raw result