You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Allow store from one struct type to a different type with compatible layout and members
190
187
191
-
Calling `cargo gpu toml {path/to/Cargo.toml}` with a Cargo.toml that
192
-
contains the example above would compile the crate and place the compiled
193
-
`.spv` files and manifest in a directory "shaders".
188
+
--relax-logical-pointer
189
+
Allow allocating an object of a pointer type and returning a pointer value from a function in logical addressing mode
194
190
195
-
[default: ./Cargo.toml]
191
+
--relax-block-layout
192
+
Enable `VK_KHR_relaxed_block_layout` when checking standard uniform, storage buffer, and push constant layouts. This is the default when targeting Vulkan 1.1 or later
196
193
197
-
Options:
198
-
-h, --help
199
-
Print help (see a summary with '-h')
194
+
--uniform-buffer-standard-layout
195
+
Enable `VK_KHR_uniform_buffer_standard_layout` when checking standard uniform buffer layouts
200
196
197
+
--scalar-block-layout
198
+
Enable `VK_EXT_scalar_block_layout` when checking standard uniform, storage buffer, and push constant layouts. Scalar layout rules are more permissive than relaxed block layout so in effect this will override the --relax-block-layout option
201
199
202
-
* Show
203
-
204
-
Show some useful values
200
+
--skip-block-layout
201
+
Skip checking standard uniform / storage buffer layout. Overrides any --relax-block-layout or --scalar-block-layout option
205
202
206
-
Usage: cargo-gpu show <COMMAND>
203
+
--preserve-bindings
204
+
Preserve unused descriptor bindings. Useful for reflection
207
205
208
-
Commands:
209
-
cache-directory Displays the location of the cache directory
210
-
spirv-source The source location of spirv-std
211
-
help Print this message or the help of the given subcommand(s)
206
+
-h, --help
207
+
Print help (see a summary with '-h')
212
208
213
-
Options:
214
-
-h, --help
215
-
Print help
216
209
210
+
* Show
211
+
Show some useful values
217
212
218
-
* Cache-directory
219
-
220
-
Displays the location of the cache directory
213
+
Usage: cargo-gpu show <COMMAND>
221
214
222
-
Usage: cargo-gpu show cache-directory
215
+
Commands:
216
+
cache-directory Displays the location of the cache directory
217
+
spirv-source The source location of spirv-std
218
+
help Print this message or the help of the given subcommand(s)
223
219
224
-
Options:
225
-
-h, --help
226
-
Print help
220
+
Options:
221
+
-h, --help
222
+
Print help
227
223
228
224
229
-
* Spirv-source
225
+
* Cache-directory
226
+
Displays the location of the cache directory
230
227
231
-
The source location of spirv-std
228
+
Usage: cargo-gpu show cache-directory
232
229
233
-
Usage: cargo-gpu show spirv-source [OPTIONS]
230
+
Options:
231
+
-h, --help
232
+
Print help
234
233
235
-
Options:
236
-
--shader-crate <SHADER_CRATE>
237
-
The location of the shader-crate to inspect to determine its spirv-std dependency
238
234
239
-
[default: ./]
235
+
* Spirv-source
236
+
The source location of spirv-std
240
237
241
-
-h, --help
242
-
Print help
238
+
Usage: cargo-gpu show spirv-source [OPTIONS]
243
239
240
+
Options:
241
+
--shader-crate <SHADER_CRATE>
242
+
The location of the shader-crate to inspect to determine its spirv-std dependency
0 commit comments