Enum gfx_core::factory::TargetViewError [] [src]

pub enum TargetViewError {
    NoBindFlag,
    BadLevel(Level),
    BadLayer(Layer),
    Channel(ChannelType),
    Unsupported,
}

Error creating either a RenderTargetView, or DepthStencilView.

Variants

NoBindFlag

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

BadLevel

Selected mip level doesn't exist.

BadLayer

Selected array layer doesn't exist.

Channel

Selected channel type is not supported for this texture.

Unsupported

The backend refused for some reason.

Trait Implementations

Derived Implementations

impl Debug for TargetViewError

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

impl PartialEq for TargetViewError

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

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

impl Clone for TargetViewError

fn clone(&self) -> TargetViewError

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