pub struct CompilerBackend<T> { /* private fields */ }
Expand description
A wrapper for a compiler backend.
Trait Implementations§
Source§impl<T, E> CompileShader<E> for CompilerBackend<T>where
T: CompileShader<E>,
E: OutputTarget,
impl<T, E> CompileShader<E> for CompilerBackend<T>where
T: CompileShader<E>,
E: OutputTarget,
Source§type Options = <T as CompileShader<E>>::Options
type Options = <T as CompileShader<E>>::Options
Options provided to the compiler.
Source§type Context = <T as CompileShader<E>>::Context
type Context = <T as CompileShader<E>>::Context
Additional context returned by the compiler after compilation.
Source§fn compile(
self,
options: Self::Options,
) -> Result<ShaderCompilerOutput<E::Output, Self::Context>, ShaderCompileError>
fn compile( self, options: Self::Options, ) -> Result<ShaderCompilerOutput<E::Output, Self::Context>, ShaderCompileError>
Consume the object and return the compiled output of the shader. Read more
Source§impl<T> ReflectShader for CompilerBackend<T>where
T: ReflectShader,
impl<T> ReflectShader for CompilerBackend<T>where
T: ReflectShader,
Source§fn reflect(
&mut self,
pass_number: usize,
semantics: &ShaderSemantics,
) -> Result<ShaderReflection, ShaderReflectError>
fn reflect( &mut self, pass_number: usize, semantics: &ShaderSemantics, ) -> Result<ShaderReflection, ShaderReflectError>
Reflect the shader as the given pass within the shader preset, against the provided
semantic map.
Auto Trait Implementations§
impl<T> Freeze for CompilerBackend<T>where
T: Freeze,
impl<T> RefUnwindSafe for CompilerBackend<T>where
T: RefUnwindSafe,
impl<T> Send for CompilerBackend<T>where
T: Send,
impl<T> Sync for CompilerBackend<T>where
T: Sync,
impl<T> Unpin for CompilerBackend<T>where
T: Unpin,
impl<T> UnwindSafe for CompilerBackend<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more