Enum nannou::ui::backend::glium::glium::DrawError[][src]

pub enum DrawError {
    NoDepthBuffer,
    AttributeTypeMismatch,
    AttributeMissing,
    ViewportTooLarge,
    InvalidDepthRange,
    UniformTypeMismatch {
        name: String,
        expected: UniformType,
    },
    UniformBufferToValue {
        name: String,
    },
    UniformValueToBlock {
        name: String,
    },
    UniformBlockLayoutMismatch {
        name: String,
        err: LayoutMismatchError,
    },
    SubroutineUniformToValue {
        name: String,
    },
    SubroutineUniformMissing {
        stage: ShaderStage,
        expected_count: usize,
        real_count: usize,
    },
    SubroutineNotFound {
        stage: ShaderStage,
        name: String,
    },
    UnsupportedVerticesPerPatch,
    TessellationNotSupported,
    TessellationWithoutPatches,
    SamplersNotSupported,
    InstancesCountMismatch,
    VerticesSourcesLengthMismatch,
    TransformFeedbackNotSupported,
    WrongQueryOperation,
    SmoothingNotSupported,
    ProvokingVertexNotSupported,
    RasterizerDiscardNotSupported,
    DepthClampNotSupported,
    BlendingParameterNotSupported,
    FixedIndexRestartingNotSupported,
    ClipPlaneIndexOutOfBounds,
}

Error that can happen while drawing.

Variants

A depth function has been requested but no depth buffer is available.

The type of a vertex attribute in the vertices source doesn't match what the program requires.

One of the attributes required by the program is missing from the vertex format.

Note that it is perfectly valid to have an attribute in the vertex format that is not used by the program.

The viewport's dimensions are not supported by the backend.

The depth range is outside of the (0, 1) range.

The type of a uniform doesn't match what the program requires.

Fields of UniformTypeMismatch

Name of the uniform you are trying to bind.

The expected type.

Tried to bind a uniform buffer to a single uniform value.

Fields of UniformBufferToValue

Name of the uniform you are trying to bind.

Tried to bind a single uniform value to a uniform block.

Fields of UniformValueToBlock

Name of the uniform you are trying to bind.

The layout of the content of the uniform buffer does not match the layout of the block.

Fields of UniformBlockLayoutMismatch

Name of the block you are trying to bind.

The error giving more details about the mismatch.

Tried to bind a subroutine uniform like a regular uniform value.

Fields of SubroutineUniformToValue

Name of the uniform you are trying to bind.

Not all subroutine uniforms of a shader stage were set.

Fields of SubroutineUniformMissing

Shader stage with missing bindings.

The expected number of bindings.

The number of bindings defined by the user.

A non-existent subroutine was referenced.

Fields of SubroutineNotFound

The stage the subroutine was searched for.

The invalid name of the subroutine.

The number of vertices per patch that has been requested is not supported.

Trying to use tessellation, but this is not supported by the underlying hardware.

Using a program which contains tessellation shaders, but without submitting patches.

Trying to use a sampler, but they are not supported by the backend.

When you use instancing, all vertices sources must have the same size.

If you don't use indices, then all vertices sources must have the same size.

You requested not to draw primitives, but this is not supported by the backend.

See the documentation of the draw_parameters module for infos.

You requested smoothing, but this is not supported by the backend.

The requested provoking vertex is not supported by the backend.

Discarding rasterizer output isn't supported by the backend.

Depth clamping isn't supported by the backend.

One of the blending parameters is not supported by the backend.

Restarting indices (multiple objects per draw call) is not supported by the backend.

Tried to enable a clip plane that does not exist.

Trait Implementations

impl Clone for DrawError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DrawError
[src]

Formats the value using the given formatter. Read more

impl Error for DrawError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl Display for DrawError
[src]

Formats the value using the given formatter. Read more

impl From<DrawError> for DrawError
[src]

Performs the conversion.

impl From<DrawError> for RendererDrawError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for DrawError

impl Sync for DrawError