librashader_reflect::front

Trait ShaderInputCompiler

source
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§

source

fn compile(source: &ShaderSource) -> Result<O, ShaderCompileError>

Compile the input shader source file into a compilation unit.

Object Safety§

This trait is not object safe.

Implementors§