Enum luminance_glfw::StateQueryError
source · [−]#[non_exhaustive]
pub enum StateQueryError {
Show 16 variants
UnavailableGLState,
UnknownBlendingState(u8),
UnknownBlendingEquation(u32),
UnknownBlendingSrcFactor(u32),
UnknownBlendingDstFactor(u32),
UnknownDepthTestState(u8),
UnknownStencilTestState(u8),
UnknownStencilTestComparison(i32),
UnknownStencilOp(i32),
UnknownWriteState(u8),
UnknownFaceCullingState(u8),
UnknownFaceCullingOrder(u32),
UnknownFaceCullingMode(u32),
UnknownVertexRestartState(u8),
UnknownSRGBFramebufferState(u8),
UnknownScissorState(u8),
}
Expand description
An error that might happen when the context is queried.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
UnavailableGLState
The GLState
object is unavailable.
That might occur if the current thread doesn’t support allocating a new graphics state. It might happen if you try to have more than one state on the same thread, for instance.
UnknownBlendingState(u8)
Corrupted blending state.
UnknownBlendingEquation(u32)
Corrupted blending equation.
UnknownBlendingSrcFactor(u32)
Corrupted blending source factor.
UnknownBlendingDstFactor(u32)
Corrupted blending destination factor.
UnknownDepthTestState(u8)
Corrupted depth test state.
UnknownStencilTestState(u8)
Corrupted stencil test state.
UnknownStencilTestComparison(i32)
Corrupted stencil test comparison.
UnknownStencilOp(i32)
Corrupted stencil op.
UnknownWriteState(u8)
Corrupted depth write state.
UnknownFaceCullingState(u8)
Corrupted face culling state.
UnknownFaceCullingOrder(u32)
Corrupted face culling order.
UnknownFaceCullingMode(u32)
Corrupted face culling mode.
UnknownVertexRestartState(u8)
Corrupted vertex restart state.
UnknownSRGBFramebufferState(u8)
Corrupted sRGB framebuffer state.
UnknownScissorState(u8)
Corrupted scissor state.
Trait Implementations
sourceimpl Debug for StateQueryError
impl Debug for StateQueryError
sourceimpl Display for StateQueryError
impl Display for StateQueryError
sourceimpl Error for StateQueryError
impl Error for StateQueryError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for StateQueryError
impl Send for StateQueryError
impl Sync for StateQueryError
impl Unpin for StateQueryError
impl UnwindSafe for StateQueryError
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