librashader/librashader-reflect/src/front/mod.rs

13 lines
332 B
Rust
Raw Normal View History

use crate::error::ShaderCompileError;
use librashader_preprocess::ShaderSource;
#[cfg(feature = "unstable-naga")]
2022-10-23 17:36:41 +11:00
pub mod naga;
2022-11-22 08:21:50 +11:00
2022-10-23 17:36:41 +11:00
pub mod shaderc;
pub trait ShaderCompilation: Sized {
/// Compile the input shader source file into a compilation unit.
fn compile(source: &ShaderSource) -> Result<Self, ShaderCompileError>;
}