Enum gfx::device::tex::TextureError [] [src]

pub enum TextureError {
    UnsupportedFormat,
    UnsupportedGamma,
    UnsupportedSampling,
    InvalidInfo(TextureInfo),
    IncorrectSize(usize),
}

Texture creation/update error.

Variants

UnsupportedFormat

Failed to map a given format to the device.

UnsupportedGamma

Failed to provide sRGB formats.

UnsupportedSampling

Failed to map a given multisampled kind to the device.

InvalidInfo

The given TextureInfo contains invalid values.

IncorrectSize

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

Trait Implementations

impl Debug for TextureError

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

Derived Implementations

impl PartialEq for TextureError

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

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

impl Clone for TextureError

fn clone(&self) -> TextureError

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

impl Copy for TextureError