pub enum FrameworkError {
Show 13 variants
ShaderCompilationFailed {
shader_name: String,
error_message: String,
},
ShaderLinkingFailed {
shader_name: String,
error_message: String,
},
FaultyShaderSource,
UnableToFindShaderUniform(String),
UnableToFindShaderUniformBlock(String),
InvalidTextureData {
expected_data_size: usize,
actual_data_size: usize,
},
EmptyTextureData,
InvalidElementRange {
start: usize,
end: usize,
total: usize,
},
InvalidAttributeDescriptor,
InvalidFrameBuffer,
FailedToConstructFBO,
Custom(String),
GraphicsServerUnavailable,
}Expand description
Set of possible renderer errors.
Variants§
ShaderCompilationFailed
Compilation of a shader has failed.
ShaderLinkingFailed
Means that shader link stage failed, exact reason is inside error_message
FaultyShaderSource
Shader source contains invalid characters.
UnableToFindShaderUniform(String)
There is no such shader uniform (could be optimized out).
UnableToFindShaderUniformBlock(String)
There is no such shader uniform block.
InvalidTextureData
Texture has invalid data - insufficient size.
Fields
EmptyTextureData
None variant was passed as texture data, but engine does not support it.
InvalidElementRange
Means that you tried to draw element range from GeometryBuffer that does not have enough elements.
InvalidAttributeDescriptor
Means that attribute descriptor tries to define an attribute that does not exists in vertex, or it does not match size. For example you have vertex: pos: float2, normal: float3 But you described second attribute as Float4, then you’ll get this error.
InvalidFrameBuffer
Framebuffer is invalid.
FailedToConstructFBO
OpenGL failed to construct framebuffer.
Custom(String)
Custom error. Usually used for internal errors.
Graphics server disconnected.
Trait Implementations§
Source§impl Debug for FrameworkError
impl Debug for FrameworkError
Source§impl Display for FrameworkError
impl Display for FrameworkError
Source§impl Error for FrameworkError
impl Error for FrameworkError
1.30.0 · 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
Source§impl From<NulError> for FrameworkError
impl From<NulError> for FrameworkError
Auto Trait Implementations§
impl Freeze for FrameworkError
impl RefUnwindSafe for FrameworkError
impl Send for FrameworkError
impl Sync for FrameworkError
impl Unpin for FrameworkError
impl UnwindSafe for FrameworkError
Blanket Implementations§
Source§impl<T> AsyncTaskResult for T
impl<T> AsyncTaskResult for T
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
Source§impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.