Enum gfx_core::tex::Error [] [src]

pub enum Error {
    Format(SurfaceType, Option<ChannelType>),
    Kind,
    Samples(AaMode),
    Size(Size),
    Data(usize),
}

Pure texture object creation error.

Variants

Format

Failed to map a given format to the device.

Kind

The kind doesn't support a particular operation.

Samples

Failed to map a given multisampled kind to the device.

Size

Unsupported size in one of the dimensions.

Data

The given data has a different size than the target texture slice.

Trait Implementations

Derived Implementations

impl PartialEq for Error

fn eq(&self, __arg_0: &Error) -> bool

fn ne(&self, __arg_0: &Error) -> bool

impl Debug for Error

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

impl Clone for Error

fn clone(&self) -> Error

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

impl Copy for Error