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(TextureInfo)

The given TextureInfo contains invalid values.

IncorrectSize(usize)

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

Trait Implementations

impl PartialEq for TextureError
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Clone for TextureError
[src]

fn clone(&self) -> TextureError

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 Copy for TextureError
[src]

impl Debug for TextureError
[src]

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

Formats the value using the given formatter.