Enum gfx_core::factory::TargetViewError [−][src]
pub enum TargetViewError { NoBindFlag, Level(Level), 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(Level)
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]
impl Clone for TargetViewError
fn clone(&self) -> TargetViewError
[src]
fn clone(&self) -> TargetViewError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for TargetViewError
[src]
impl Debug for TargetViewError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for TargetViewError
[src]
impl PartialEq for TargetViewError
fn eq(&self, other: &TargetViewError) -> bool
[src]
fn eq(&self, other: &TargetViewError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TargetViewError) -> bool
[src]
fn ne(&self, other: &TargetViewError) -> bool
This method tests for !=
.
impl Display for TargetViewError
[src]
impl Display for TargetViewError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for TargetViewError
[src]
impl Error for TargetViewError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<TargetViewError> for CombinedError
[src]
impl From<TargetViewError> for CombinedError
fn from(e: TargetViewError) -> CombinedError
[src]
fn from(e: TargetViewError) -> CombinedError
Performs the conversion.
Auto Trait Implementations
impl Send for TargetViewError
impl Send for TargetViewError
impl Sync for TargetViewError
impl Sync for TargetViewError