#[non_exhaustive]pub enum RendererError {
Show 29 variants
Generic(String),
BadTexture(String),
InvalidRenderState(String),
FrameNotPrepared,
FrameEpochOutOfOrder {
active: u64,
received: u64,
},
ContextNotBound,
ContextDropped,
ContextMismatch,
ContextAlreadyHasRenderer,
RendererStateDrift {
field: &'static str,
},
DrawBufferTooLarge {
buffer: &'static str,
},
DrawBufferOffsetOverflow {
buffer: &'static str,
},
DrawCommandIndexRangeOutOfBounds {
start: usize,
end: usize,
len: usize,
},
DrawCommandVertexOutOfBounds {
index: usize,
len: usize,
},
RawDrawCallbackUnsupported,
BufferCreationFailed(String),
TextureCreationFailed(String),
PipelineCreationFailed(String),
ShaderCompilationFailed(String),
Wgpu(Error),
InvalidTextureId(TextureId),
TextureIdExhausted,
ExternalTextureNotFound(TextureId),
ManagedTextureMissing(SnapshotTextureId),
ManagedTextureLayoutMismatch {
texture: SnapshotTextureId,
expected: [u32; 2],
actual: [u32; 2],
},
RendererConsumer(RendererConsumerError),
FrameCapture(SnapshotError),
ContextAttachment(ContextAttachmentError),
TextureFeedback(TextureFeedbackError),
}Expand description
Errors that can occur during rendering operations
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Generic(String)
Generic error with message
BadTexture(String)
Bad texture error
InvalidRenderState(String)
Invalid render state
FrameNotPrepared
Secondary viewport rendering began before the Context frame was reconciled.
FrameEpochOutOfOrder
A frame older than the renderer’s active resource epoch was supplied.
ContextNotBound
The renderer has not been attached to a Dear ImGui context.
ContextDropped
The Dear ImGui context used to initialize the renderer has been dropped.
ContextMismatch
A context-taking operation received a context other than the renderer owner.
ContextAlreadyHasRenderer
The context already has renderer-owned state that this renderer cannot claim safely.
RendererStateDrift
Renderer-owned Dear ImGui state changed while this renderer remained attached.
DrawBufferTooLarge
Draw buffer length exceeds renderer index ranges.
DrawBufferOffsetOverflow
Draw buffer offset overflowed while accumulating draw lists.
DrawCommandIndexRangeOutOfBounds
A draw command addresses indices outside its parent draw list.
DrawCommandVertexOutOfBounds
A draw command references a vertex outside its parent draw list.
RawDrawCallbackUnsupported
Native raw draw callbacks cannot be invoked by this target.
BufferCreationFailed(String)
Buffer creation failed
TextureCreationFailed(String)
Texture creation failed
PipelineCreationFailed(String)
Pipeline creation failed
ShaderCompilationFailed(String)
Shader compilation failed
Wgpu(Error)
WGPU error
InvalidTextureId(TextureId)
Invalid texture ID
TextureIdExhausted
The process-wide renderer texture identifier space is exhausted.
ExternalTextureNotFound(TextureId)
An external texture handle does not belong to this renderer or was already removed.
ManagedTextureMissing(SnapshotTextureId)
A managed update arrived after the renderer lost its matching GPU resource.
ManagedTextureLayoutMismatch
A managed identity was reused with incompatible dimensions.
RendererConsumer(RendererConsumerError)
Context-owned renderer consumer state rejected the operation.
FrameCapture(SnapshotError)
Managed frame finalization or texture-request capture failed.
ContextAttachment(ContextAttachmentError)
Context attachment registration rejected the renderer’s deferred-drop cleanup hook.
TextureFeedback(TextureFeedbackError)
A request was completed with the wrong feedback kind.
Trait Implementations§
Source§impl Debug for RendererError
impl Debug for RendererError
Source§impl Display for RendererError
impl Display for RendererError
Source§impl Error for RendererError
impl Error for RendererError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()