[][src]Enum processing::DrawError

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

NoDepthBuffer

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

AttributeTypeMismatch

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

AttributeMissing

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.

ViewportTooLarge

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

InvalidDepthRange

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

UniformTypeMismatch

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

Fields of UniformTypeMismatch

name: String

Name of the uniform you are trying to bind.

expected: UniformType

The expected type.

UniformBufferToValue

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

Fields of UniformBufferToValue

name: String

Name of the uniform you are trying to bind.

UniformValueToBlock

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

Fields of UniformValueToBlock

name: String

Name of the uniform you are trying to bind.

UniformBlockLayoutMismatch

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

Fields of UniformBlockLayoutMismatch

name: String

Name of the block you are trying to bind.

err: LayoutMismatchError

The error giving more details about the mismatch.

SubroutineUniformToValue

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

Fields of SubroutineUniformToValue

name: String

Name of the uniform you are trying to bind.

SubroutineUniformMissing

Not all subroutine uniforms of a shader stage were set.

Fields of SubroutineUniformMissing

stage: ShaderStage

Shader stage with missing bindings.

expected_count: usize

The expected number of bindings.

real_count: usize

The number of bindings defined by the user.

SubroutineNotFound

A non-existent subroutine was referenced.

Fields of SubroutineNotFound

stage: ShaderStage

The stage the subroutine was searched for.

name: String

The invalid name of the subroutine.

UnsupportedVerticesPerPatch

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

TessellationNotSupported

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

TessellationWithoutPatches

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

SamplersNotSupported

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

InstancesCountMismatch

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

VerticesSourcesLengthMismatch

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

TransformFeedbackNotSupported

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

WrongQueryOperation

See the documentation of the draw_parameters module for infos.

SmoothingNotSupported

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

ProvokingVertexNotSupported

The requested provoking vertex is not supported by the backend.

RasterizerDiscardNotSupported

Discarding rasterizer output isn't supported by the backend.

DepthClampNotSupported

Depth clamping isn't supported by the backend.

BlendingParameterNotSupported

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

FixedIndexRestartingNotSupported

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

ClipPlaneIndexOutOfBounds

Tried to enable a clip plane that does not exist.

Trait Implementations

impl Display for DrawError[src]

impl Error for DrawError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

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

impl Clone for DrawError[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DrawError[src]

Auto Trait Implementations

impl Send for DrawError

impl Sync for DrawError

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T[src]