mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
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.
render_to_texture
Similar to hello-triangle but instead of rendering to a window or canvas, renders to a texture that is then output as an image like the storage-texture example.
If all goes well, the end result should look familiarly like hello-triangle with its red triangle on a green background.
To Run
cargo run --bin wgpu-examples render_to_texture