Fix output args for render_to_texture example #5338
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Connections
Link to the issues addressed by this PR, or dependent PRs in other repositories
Description
The render_to_texture instructions specified render-to-texture as a
--bin render-to-texture
rather thanwgpu-examples
.Since the example (e.g.
render_to_texture
) is now specified as the first argument, the output argument should now be the second one.This also adds the default output to .gitignore.
Currently it will try to create a file named
render_to_texture
which when running underexamples/src
already exists and is a directory, which fails.Testing
cargo run --bin wgpu-examples -- render_to_texture "test.png"
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.