Enum gfx::shade::core::CompatibilityError []

pub enum CompatibilityError {
    ErrorArraySize,
    ErrorBaseType,
    ErrorContainer,
}

Error type for trying to store a UniformValue in a ConstVar.

Variants

ErrorArraySize

Array sizes differ between the value and the var (trying to upload a vec2 as a vec4, etc)

ErrorBaseType

Base types differ between the value and the var (trying to upload a f32 as a u16, etc)

ErrorContainer

Container-ness differs between the value and the var (trying to upload a scalar as a vec4, etc)

Trait Implementations

impl Debug for CompatibilityError

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

Formats the value using the given formatter.

impl Copy for CompatibilityError

impl Clone for CompatibilityError

fn clone(&self) -> CompatibilityError

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Display for CompatibilityError

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Error for CompatibilityError

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

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