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 02:36:41 -04:00
pub mod naga;
2022-11-21 16:21:50 -05:00
2022-10-23 02:36:41 -04: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>;
}