Trait librashader_reflect::front::ShaderCompilation
source · pub trait ShaderCompilation: Sized {
// Required method
fn compile(source: &ShaderSource) -> Result<Self, ShaderCompileError>;
}Expand description
Trait for types that can compile shader sources into a compilation unit.
Required Methods§
sourcefn compile(source: &ShaderSource) -> Result<Self, ShaderCompileError>
fn compile(source: &ShaderSource) -> Result<Self, ShaderCompileError>
Compile the input shader source file into a compilation unit.