mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 23:11:01 +01:00
Co-authored-by: unknown <alimilhim5@gmail.com> Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com> Closes https://github.com/gfx-rs/wgpu/issues/2722 closes https://github.com/gfx-rs/wgpu/pull/3147
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
