Files
wgpu/wgpu/examples/capture
Zicklag 312828f12f Implement WebGL2 Backend (#1686)
* Implement WebGL Backend

* Add WebGL Fixes by @mrk-its

* Update Limits for WASM and Examples

* Address Review Points
2021-10-07 16:18:09 -04:00
..
2021-10-07 16:18:09 -04:00
2020-04-26 18:59:48 -02:30

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

Screenshots

Capture example