Files
wgpu/examples/features/src/storage_texture
Kevin Reid 326ad03ce1 Move trace_dir/trace_path to a custom enum inside DeviceDescriptor.
This allows `wgpu` to not unconditionally depend on `std::path::Path`.
It’s also, in my opinion, more user-friendly, because the feature which
most users will not use (and is not currently functional) is now a
defaultable struct field instead of a required parameter.

The disadvantage is that `wgpu-types` now has to know about tracing.
2025-03-10 22:17:06 -04:00
..
2025-01-20 18:07:22 -05:00
2025-01-20 18:07:22 -05:00
2025-01-20 18:07:22 -05:00

storage_texture

A simple example that uses a storage texture to compute an image of the Mandelbrot set (https://en.wikipedia.org/wiki/Mandelbrot_set) and either saves it as an image or presents it to the browser screen in such a way that it can be saved as an image.

To Run

cargo run --bin wgpu-examples storage_texture

Example Output

Example output