@@ -10,10 +10,9 @@ use thiserror::Error;
10
10
use super :: PipelineConstants ;
11
11
use crate :: {
12
12
arena:: HandleVec ,
13
- compact:: compact,
14
13
ir,
15
14
proc:: { ConstantEvaluator , ConstantEvaluatorError , Emitter } ,
16
- valid:: { Capabilities , ModuleInfo , ValidationError , ValidationFlags , Validator } ,
15
+ valid:: ValidationError ,
17
16
Arena , Block , Constant , Expression , Function , Handle , Literal , Module , Override , Range , Scalar ,
18
17
Span , Statement , TypeInner , WithSpan ,
19
18
} ;
@@ -64,10 +63,12 @@ pub enum PipelineConstantError {
64
63
#[ cfg( feature = "compact" ) ]
65
64
pub fn process_overrides < ' a > (
66
65
module : & ' a Module ,
67
- module_info : & ' a ModuleInfo ,
66
+ module_info : & ' a crate :: valid :: ModuleInfo ,
68
67
entry_point : Option < ( ir:: ShaderStage , & str ) > ,
69
68
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
+
71
72
if module. overrides . is_empty ( ) {
72
73
return Ok ( ( Cow :: Borrowed ( module) , Cow :: Borrowed ( module_info) ) ) ;
73
74
}
@@ -82,7 +83,7 @@ pub fn process_overrides<'a>(
82
83
. entry_points
83
84
. retain ( |ep| ep. stage == ep_stage && ep. name == ep_name) ;
84
85
}
85
- compact ( & mut module, false ) ;
86
+ crate :: compact :: compact ( & mut module, false ) ;
86
87
87
88
// A map from override handles to the handles of the constants
88
89
// we've replaced them with.
0 commit comments