[][src]Enum rg3d::renderer::error::RendererError

pub enum RendererError {
    ShaderCompilationFailed {
        shader_name: String,
        error_message: String,
    },
    ShaderLinkingFailed {
        shader_name: String,
        error_message: String,
    },
    FaultyShaderSource,
    UnableToFindShaderUniform(String),
    InvalidTextureData {
        expected_data_size: usize,
        actual_data_size: usize,
    },
    InvalidElementRange {
        start: usize,
        end: usize,
        total: usize,
    },
    InvalidAttributeDescriptor,
    InvalidFrameBuffer,
    FailedToConstructFBO,
    Context(ContextError),
}

Set of possible renderer errors.

Variants

ShaderCompilationFailed

Compilation of a shader has failed.

Fields of ShaderCompilationFailed

shader_name: String

Name of shader.

error_message: String

Compilation error message.

ShaderLinkingFailed

Means that shader link stage failed, exact reason is inside error_message

Fields of ShaderLinkingFailed

shader_name: String

Name of shader.

error_message: String

Linking error message.

FaultyShaderSource

Shader source contains invalid characters.

UnableToFindShaderUniform(String)

There is no such shader uniform (could be optimized out).

InvalidTextureData

Texture has invalid data - insufficient size.

Fields of InvalidTextureData

expected_data_size: usize

Expected data size in bytes.

actual_data_size: usize

Actual data size in bytes.

InvalidElementRange

Means that you tried to draw element range from GeometryBuffer that does not have enough elements.

Fields of InvalidElementRange

start: usize

First index.

end: usize

Last index.

total: usize

Total amount of triangles.

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.

Context(ContextError)

Internal context error.

Trait Implementations

impl Debug for RendererError[src]

impl From<ContextError> for RendererError[src]

impl From<NulError> for RendererError[src]

impl From<RendererError> for EngineError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,