Moved the ConstantSolver to the glsl frontend

This commit is contained in:
João Capucho
2021-02-05 22:28:30 +00:00
committed by Dzmitry Malyshau
parent 88eee833d7
commit 647dd76dba
4 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
use super::error::ErrorKind;
use super::{constants::ConstantSolver, error::ErrorKind};
use crate::{
proc::{ConstantSolver, ResolveContext, Typifier},
proc::{ResolveContext, Typifier},
Arena, BinaryOperator, Binding, Constant, Expression, FastHashMap, Function, FunctionArgument,
GlobalVariable, Handle, Interpolation, LocalVariable, Module, ShaderStage, Statement,
StorageClass, Type,

View File

@@ -14,6 +14,7 @@ use ast::Program;
use lex::Lexer;
mod error;
pub use error::ParseError;
mod constants;
mod functions;
mod parser;
#[cfg(test)]

View File

@@ -2,7 +2,6 @@
#[cfg(feature = "petgraph")]
mod call_graph;
mod constants;
mod interface;
mod layouter;
mod namer;
@@ -12,7 +11,6 @@ mod validator;
#[cfg(feature = "petgraph")]
pub use call_graph::{CallGraph, CallGraphBuilder};
pub use constants::{ConstantSolver, ConstantSolvingError};
pub use interface::{Interface, Visitor};
pub use layouter::{Alignment, Layouter};
pub use namer::{EntryPointIndex, NameKey, Namer};