Skip to content

Commit a75e1a3

Browse files
committed
rename placeholder integration_type to integration
1 parent e9a1b4c commit a75e1a3

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

ash-graphics/Cargo.toml.liquid

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ repository = ""
1616
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(target_arch, values("spirv"))'] }
1717

1818
[workspace.dependencies]
19-
{% if integration_type == "spirv-builder" -%}
19+
{% if integration == "spirv-builder" -%}
2020
# The version of the dependencies `spirv-builder` and `spirv-std` must match exactly!
2121
spirv-builder = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "6fb875068d0d35b1a81ae89b73cf7a464f8c60f7" }
2222
{% endif -%}
23-
{% if integration_type == "cargo-gpu" -%}
23+
{% if integration == "cargo-gpu" -%}
2424
cargo-gpu = { git = "https://github.com/Rust-GPU/cargo-gpu", rev = "bf24eb6060e0c7b0013eceddd23b5d7cee68f4cc" }
2525
{% endif -%}
2626
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "6fb875068d0d35b1a81ae89b73cf7a464f8c60f7" }
@@ -34,7 +34,7 @@ winit = "0.30.0"
3434
cfg-if = "1.0.0"
3535
anyhow = "1.0.98"
3636

37-
{% if integration_type == "spirv-builder" -%}
37+
{% if integration == "spirv-builder" -%}
3838
# Optimize build scripts, copied from rust-gpu's repo
3939
# Enable incremental by default in release mode.
4040
[profile.release]

ash-graphics/ash-graphics/Cargo.toml.liquid

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repository.workspace = true
1010
[lints]
1111
workspace = true
1212

13-
{% if integration_type == "spirv-builder" -%}
13+
{% if integration == "spirv-builder" -%}
1414
[features]
1515
default = ["use-compiled-tools"]
1616
use-installed-tools = ["spirv-builder/use-installed-tools"]
@@ -28,10 +28,10 @@ anyhow.workspace = true
2828
bytemuck.workspace = true
2929

3030
[build-dependencies]
31-
{% if integration_type == "spirv-builder" -%}
31+
{% if integration == "spirv-builder" -%}
3232
spirv-builder.workspace = true
3333
{% endif -%}
34-
{% if integration_type == "cargo-gpu" -%}
34+
{% if integration == "cargo-gpu" -%}
3535
cargo-gpu.workspace = true
3636
{% endif -%}
3737
anyhow.workspace = true

ash-graphics/ash-graphics/build.rs.liquid

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{% if integration_type == "spirv-builder" -%}
1+
{% if integration == "spirv-builder" -%}
22
use spirv_builder::{MetadataPrintout, ShaderPanicStrategy, SpirvBuilder};
33
{% endif -%}
4-
{% if integration_type == "cargo-gpu" -%}
4+
{% if integration == "cargo-gpu" -%}
55
use cargo_gpu::Install;
66
use cargo_gpu::spirv_builder::{MetadataPrintout, ShaderPanicStrategy};
77
{% endif -%}
@@ -14,10 +14,10 @@ pub fn main() -> anyhow::Result<()> {
1414
.copied()
1515
.collect::<PathBuf>();
1616

17-
{% if integration_type == "spirv-builder" -%}
17+
{% if integration == "spirv-builder" -%}
1818
let mut builder = SpirvBuilder::new(crate_path, "spirv-unknown-vulkan1.3");
1919
{% endif -%}
20-
{% if integration_type == "cargo-gpu" -%}
20+
{% if integration == "cargo-gpu" -%}
2121
let install = Install::from_shader_crate(crate_path.clone()).run()?;
2222
let mut builder = install.to_spirv_builder(crate_path, "spirv-unknown-vulkan1.3");
2323
{% endif -%}

ash-graphics/cargo-generate.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ignore = ["target"]
33
exclude = ["target"]
44

55
[placeholders]
6-
integration_type = { prompt = "What integration type?", choices = ["cargo-gpu", "spirv-builder"], default = "cargo-gpu", type = "string" }
6+
integration = { prompt = "What integration type?", choices = ["cargo-gpu", "spirv-builder"], default = "cargo-gpu", type = "string" }
77

8-
[conditional.'integration_type != "spirv-builder"']
9-
ignore = [ "rust-toolchain.toml" ]
8+
[conditional.'integration != "spirv-builder"']
9+
ignore = [ "rust-toolchain.toml" ]

xtask/src/generate.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl clap::ValueEnum for Values {
4040
impl Values {
4141
pub fn key(&self) -> Placeholders {
4242
match self {
43-
Values::CargoGpu | Values::SpirvBuilder => Placeholders::IntegrationType,
43+
Values::CargoGpu | Values::SpirvBuilder => Placeholders::Integration,
4444
}
4545
}
4646

@@ -52,8 +52,8 @@ impl Values {
5252
#[repr(u32)]
5353
#[derive(Copy, Clone, Eq, PartialEq, Hash, Display, EnumString, IntoStaticStr, VariantArray)]
5454
pub enum Placeholders {
55-
#[strum(to_string = "integration_type")]
56-
IntegrationType,
55+
#[strum(to_string = "integration")]
56+
Integration,
5757
}
5858

5959
impl Debug for Placeholders {

0 commit comments

Comments
 (0)