mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Re-implement `naga` development workflows using [`cargo xtask`]. Convert `make` logic and shader test configuration as file with Bash variables into an `xtask` crate and YAML files, respectively. Pros: * We now have a _portable_ workflow everywhere, which means Windows folks and people who don't install `make` don't have to suffer. 😮💨 * Workflow logic is now relatively easy to inspect and change. Whew! 💁🏻♂️💦 * Contributors can use their existing Rust knowledge to contribute to developer experience. 🎉 * `cargo xtask` is a relatively well-known convention for workflows in the ecosystem. * We can do fancy things like allow folks to run at different log levels for workflows, depending on their tastes. Cons: * There's now a non-trivial compile step to project workflow. Incremental rebuilds seem to be pretty short, though! * Code is much more verbose than the (very) terse `make` implementation. [`cargo xtask`]: https://github.com/matklad/cargo-xtask
41 lines
854 B
Plaintext
41 lines
854 B
Plaintext
(
|
|
vertex:[
|
|
(
|
|
entry_point:"queries",
|
|
target_profile:"vs_5_1",
|
|
),
|
|
(
|
|
entry_point:"levels_queries",
|
|
target_profile:"vs_5_1",
|
|
),
|
|
],
|
|
fragment:[
|
|
(
|
|
entry_point:"texture_sample",
|
|
target_profile:"ps_5_1",
|
|
),
|
|
(
|
|
entry_point:"texture_sample_comparison",
|
|
target_profile:"ps_5_1",
|
|
),
|
|
(
|
|
entry_point:"gather",
|
|
target_profile:"ps_5_1",
|
|
),
|
|
(
|
|
entry_point:"depth_no_comparison",
|
|
target_profile:"ps_5_1",
|
|
),
|
|
],
|
|
compute:[
|
|
(
|
|
entry_point:"main",
|
|
target_profile:"cs_5_1",
|
|
),
|
|
(
|
|
entry_point:"depth_load",
|
|
target_profile:"cs_5_1",
|
|
),
|
|
],
|
|
)
|