pub struct ShaderCompilerOutput<T, Context = ()> {
pub vertex: T,
pub fragment: T,
pub context: Context,
}
Expand description
The output of the shader compiler.
Fields§
§vertex: T
The output for the vertex shader.
fragment: T
The output for the fragment shader.
context: Context
Additional 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