Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ac4574f

Browse files
committedMay 20, 2025·
Fix imports for conditional compilation
1 parent e30b58c commit ac4574f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
 

‎naga/src/back/pipeline_constants.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ use thiserror::Error;
1010
use super::PipelineConstants;
1111
use crate::{
1212
arena::HandleVec,
13-
compact::compact,
1413
ir,
1514
proc::{ConstantEvaluator, ConstantEvaluatorError, Emitter},
16-
valid::{Capabilities, ModuleInfo, ValidationError, ValidationFlags, Validator},
15+
valid::ValidationError,
1716
Arena, Block, Constant, Expression, Function, Handle, Literal, Module, Override, Range, Scalar,
1817
Span, Statement, TypeInner, WithSpan,
1918
};
@@ -64,10 +63,12 @@ pub enum PipelineConstantError {
6463
#[cfg(feature = "compact")]
6564
pub fn process_overrides<'a>(
6665
module: &'a Module,
67-
module_info: &'a ModuleInfo,
66+
module_info: &'a crate::valid::ModuleInfo,
6867
entry_point: Option<(ir::ShaderStage, &str)>,
6968
pipeline_constants: &PipelineConstants,
70-
) -> Result<(Cow<'a, Module>, Cow<'a, ModuleInfo>), PipelineConstantError> {
69+
) -> Result<(Cow<'a, Module>, Cow<'a, crate::valid::ModuleInfo>), PipelineConstantError> {
70+
use crate::valid::{Capabilities, ValidationFlags, Validator};
71+
7172
if module.overrides.is_empty() {
7273
return Ok((Cow::Borrowed(module), Cow::Borrowed(module_info)));
7374
}
@@ -82,7 +83,7 @@ pub fn process_overrides<'a>(
8283
.entry_points
8384
.retain(|ep| ep.stage == ep_stage && ep.name == ep_name);
8485
}
85-
compact(&mut module, false);
86+
crate::compact::compact(&mut module, false);
8687

8788
// A map from override handles to the handles of the constants
8889
// we've replaced them with.

0 commit comments

Comments
 (0)
Please sign in to comment.