Enum gfx::TargetViewError
[−]
[src]
pub enum TargetViewError { NoBindFlag, Level(u8), Layer(LayerError), Channel(ChannelType), Unsupported, NotDetached, }
Error creating either a RenderTargetView, or DepthStencilView.
Variants
NoBindFlag
The RENDER_TARGET
/DEPTH_STENCIL
flag is not present in the texture.
Level(u8)
Selected mip level doesn't exist.
Layer(LayerError)
Selected array layer doesn't exist.
Channel(ChannelType)
Selected channel type is not supported for this texture.
Unsupported
The backend was refused for some reason.
NotDetached
The RTV cannot be changed due to the references to it existing.
Trait Implementations
impl Clone for TargetViewError
[src]
fn clone(&self) -> TargetViewError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Error for TargetViewError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl PartialEq<TargetViewError> for TargetViewError
[src]
fn eq(&self, __arg_0: &TargetViewError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TargetViewError) -> bool
[src]
This method tests for !=
.
impl Debug for TargetViewError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.