pub struct ShaderCompilerOutput<T, Context = ()> {
pub vertex: T,
pub fragment: T,
pub context: Context,
}Expand description
The output of the shader compiler.
Fields§
§vertex: TThe output for the vertex shader.
fragment: TThe output for the fragment shader.
context: ContextAdditional context provided by the shader compiler.
Trait Implementations§
Auto Trait Implementations§
impl<T, Context> Freeze for ShaderCompilerOutput<T, Context>
impl<T, Context> RefUnwindSafe for ShaderCompilerOutput<T, Context>where
T: RefUnwindSafe,
Context: RefUnwindSafe,
impl<T, Context> Send for ShaderCompilerOutput<T, Context>
impl<T, Context> Sync for ShaderCompilerOutput<T, Context>
impl<T, Context> Unpin for ShaderCompilerOutput<T, Context>
impl<T, Context> UnwindSafe for ShaderCompilerOutput<T, Context>where
T: UnwindSafe,
Context: 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