Enum gfx_core::texture::CreationError [] [src]

pub enum CreationError {
    Format(SurfaceTypeOption<ChannelType>),
    Kind,
    Samples(AaMode),
    Size(Size),
    Data(usize),
    Usage(Usage),
    Mipmap,
    Level(Level),
}

Pure texture object creation error.

Variants

Failed to map a given format to the device.

The kind doesn't support a particular operation.

Failed to map a given multisampled kind to the device.

Unsupported size in one of the dimensions.

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

The mentioned usage mode is not supported

The requested mipmap creation parameter is unsupported.

The requested mipmap level count does not match the provided data.

Trait Implementations

impl Clone for CreationError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CreationError
[src]

impl Debug for CreationError
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for CreationError
[src]

[src]

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

[src]

This method tests for !=.

impl Display for CreationError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for CreationError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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