pub trait ShaderInputCompiler<O: ShaderReflectObject>: Sized {
// Required method
fn compile(source: &ShaderSource) -> Result<O, ShaderCompileError>;
}
Expand description
Trait for types that can compile shader sources into a compilation unit.
Required Methods§
Sourcefn compile(source: &ShaderSource) -> Result<O, ShaderCompileError>
fn compile(source: &ShaderSource) -> Result<O, ShaderCompileError>
Compile the input shader source file into a compilation unit.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.