-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
20 changed files
with
1,133 additions
and
503 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,6 @@ codegen-units = 256 | |
opt-level = 3 | ||
incremental = true | ||
codegen-units = 256 | ||
|
||
[lints] | ||
workspace = true |
Oops, something went wrong.