2023-01-18 20:54:57 -05:00
|
|
|
use crate::error::ShaderCompileError;
|
|
|
|
use librashader_preprocess::ShaderSource;
|
|
|
|
|
2023-01-15 18:36:38 -05:00
|
|
|
#[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;
|
2023-01-18 20:54:57 -05:00
|
|
|
|
|
|
|
pub trait ShaderCompilation: Sized {
|
|
|
|
/// Compile the input shader source file into a compilation unit.
|
|
|
|
fn compile(source: &ShaderSource) -> Result<Self, ShaderCompileError>;
|
|
|
|
}
|