Enum gfx::render::DrawError [] [src]

pub enum DrawError<E> {
    InvalidBatch(E),
    MissingTarget(Mask),
    BadViewport,
    BadVertexCount,
    BadIndexCount,
}

Draw-time error, showing inconsistencies in draw parameters and data

Variants

InvalidBatch

Tha batch is not valid

MissingTarget

The DrawState interacts with a target that does not present in the frame. For example, the depth test is enabled while there is no depth.

BadViewport

The viewport either covers zero space or exceeds HW limitations.

BadVertexCount

Vertex count exceeds HW limitations.

BadIndexCount

Index count exceeds HW limitations.

Trait Implementations

Derived Implementations

impl<E: PartialEq> PartialEq for DrawError<E> where E: PartialEq

fn eq(&self, __arg_0: &DrawError<E>) -> bool

fn ne(&self, __arg_0: &DrawError<E>) -> bool

impl<E: Debug> Debug for DrawError<E> where E: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<E: Clone> Clone for DrawError<E> where E: Clone

fn clone(&self) -> DrawError<E>

fn clone_from(&mut self, source: &Self)