Struct luminance::shader::AdaptationFailure
source · [−]pub struct AdaptationFailure<B, Sem, Out, Uni> where
B: Shader, {
pub program: Program<B, Sem, Out, Uni>,
pub error: ProgramError,
}
Expand description
A Program
uniform adaptation that has failed.
Parametricity
B
is the backend type.Sem
is theSemantics
type.Out
is the render target type.Uni
is theUniformInterface
type.
Fields
program: Program<B, Sem, Out, Uni>
Program used before trying to adapt.
error: ProgramError
Program error that prevented to adapt.
Implementations
sourceimpl<B, Sem, Out, Uni> AdaptationFailure<B, Sem, Out, Uni> where
B: Shader,
impl<B, Sem, Out, Uni> AdaptationFailure<B, Sem, Out, Uni> where
B: Shader,
sourcepub fn ignore_error(self) -> Program<B, Sem, Out, Uni>
pub fn ignore_error(self) -> Program<B, Sem, Out, Uni>
Get the program and ignore the error.
Auto Trait Implementations
impl<B, Sem, Out, Uni> RefUnwindSafe for AdaptationFailure<B, Sem, Out, Uni> where
Out: RefUnwindSafe,
Sem: RefUnwindSafe,
Uni: RefUnwindSafe,
<B as Shader>::ProgramRepr: RefUnwindSafe,
impl<B, Sem, Out, Uni> !Send for AdaptationFailure<B, Sem, Out, Uni>
impl<B, Sem, Out, Uni> !Sync for AdaptationFailure<B, Sem, Out, Uni>
impl<B, Sem, Out, Uni> Unpin for AdaptationFailure<B, Sem, Out, Uni> where
Uni: Unpin,
<B as Shader>::ProgramRepr: Unpin,
impl<B, Sem, Out, Uni> UnwindSafe for AdaptationFailure<B, Sem, Out, Uni> where
Out: RefUnwindSafe,
Sem: RefUnwindSafe,
Uni: UnwindSafe,
<B as Shader>::ProgramRepr: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more