Skip to content

Commit 76f9f07

Browse files
committed
[naga] Use cfg aliases to enable naga::back::continue_forward.
Rather than `feature = "blah"`, use the new `cfg` identifiers introduced by the `cfg_aliases` invocation in `naga/build.rs` to decide whether to compile the `naga::back::continue_forward` module, which is only used by the GLSL and HLSL backends. The `hlsl_out` `cfg` identifer has a more complex condition than just `feature = "hlsl-out"`, introduced by gfx-rs#5919.
1 parent 591e1d2 commit 76f9f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

naga/src/back/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub mod wgsl;
1919
#[cfg(any(hlsl_out, msl_out, spv_out, glsl_out))]
2020
pub mod pipeline_constants;
2121

22-
#[cfg(any(feature = "hlsl-out", feature = "glsl-out"))]
22+
#[cfg(any(hlsl_out, glsl_out))]
2323
mod continue_forward;
2424

2525
/// Names of vector components.

0 commit comments

Comments
 (0)