Enum gfx::TargetViewError []

pub enum TargetViewError {
    NoBindFlag,
    Level(u8),
    Layer(LayerError),
    Channel(ChannelType),
    Unsupported,
}

Error creating either a RenderTargetView, or DepthStencilView.

Variants

The RENDER_TARGET/DEPTH_STENCIL flag is not present in the texture.

Selected mip level doesn't exist.

Selected array layer doesn't exist.

Selected channel type is not supported for this texture.

The backend was refused for some reason.

Trait Implementations

impl Debug for TargetViewError

Formats the value using the given formatter.

impl PartialEq<TargetViewError> for TargetViewError

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

This method tests for !=.

impl Display for TargetViewError

Formats the value using the given formatter.

impl Error for TargetViewError

A short description of the error. Read more

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

impl Clone for TargetViewError

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more