Benign rust 57 installs Download

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

Evidence

Unattended agent execution mode value window.rs · lines 10–18
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
Rust File::create call window.rs · lines 154–159
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])? …
Calls native open or sys_open window.rs · lines 177–184
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 …
#[test] attribute parity.rs · lines 157–162
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: …
#[cfg(test)] attribute lib.rs · lines 1513–1528
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

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.