Enum gfx::TargetViewError [] [src]

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

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.

The RTV cannot be changed due to the references to it existing.

Trait Implementations

impl Clone for TargetViewError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Error for TargetViewError
[src]

[src]

A short description of the error. Read more

[src]

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

impl PartialEq<TargetViewError> for TargetViewError
[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 Debug for TargetViewError
[src]

[src]

Formats the value using the given formatter.

impl Display for TargetViewError
[src]

[src]

Formats the value using the given formatter. Read more