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