Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for setting config in shader's
Cargo.toml
Values are set in the TOML section: `[package.metadata.rust-gpu.*]`. So now the priority, from least to most, is: * Workspace metadata * Shader crate's metadata * CLI args Fixes #15 Notable changes: * All `clap` args for the `build` and `install` subcommands are now defined in the `spirv-builder-cli` crate. This makes passing all the config between `cargo gpu` and `spirv-builder-cli` trivial as `serde` now does all the heavy lifting of creating and reading the JSON arguments. * There is no longer a `toml` subcommand. The shader crate's `Cargo.toml`s are always read and their configs used as the base for CLI args to override. TODO: * [ ] Reuse the `get_cargo_toml_as_json()` function to parse the shader crate's `spirv-std` dependency. This will simplify the code and be more reliable. * [ ] `cargo gpu show targets` * [ ] `cargo gpu show capabilities` * [ ] `cargo gpu show etensions` * [ ] I'm still a bit confused about the `target` and `shader_target` arguments, are they both needed?
- Loading branch information