mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
798: Fix all the clippy lints r=kvark a=HalfVoxel Clippy is now happy Co-authored-by: Aron Granberg <aron.granberg@gmail.com>
capture
This example shows how to capture an image by rendering it to a texture, copying the texture to a buffer, and retrieving it from the buffer.
This could be used for "taking a screenshot," with the added benefit that this method doesn't require a window to be created.
To Run
cargo run --example capture
open examples/capture/red.png
