Trait librashader_reflect::back::CompileShader
source · pub trait CompileShader<T: OutputTarget> {
type Options;
type Context;
// Required method
fn compile(
self,
options: Self::Options
) -> Result<ShaderCompilerOutput<T::Output, Self::Context>, ShaderCompileError>;
}Expand description
A trait for objects that can be compiled into a shader.
Required Associated Types§
Required Methods§
sourcefn compile(
self,
options: Self::Options
) -> Result<ShaderCompilerOutput<T::Output, Self::Context>, ShaderCompileError>
fn compile( self, options: Self::Options ) -> Result<ShaderCompilerOutput<T::Output, Self::Context>, ShaderCompileError>
Consume the object and return the compiled output of the shader.