pub enum TargetViewError {
NoBindFlag,
Level(Level),
Layer(LayerError),
Channel(ChannelType),
Unsupported,
NotDetached,
}
Expand description
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§
Source§impl Clone for TargetViewError
impl Clone for TargetViewError
Source§fn clone(&self) -> TargetViewError
fn clone(&self) -> TargetViewError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TargetViewError
impl Debug for TargetViewError
Source§impl Display for TargetViewError
impl Display for TargetViewError
Source§impl Error for TargetViewError
impl Error for TargetViewError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<TargetViewError> for CombinedError
impl From<TargetViewError> for CombinedError
Source§fn from(e: TargetViewError) -> CombinedError
fn from(e: TargetViewError) -> CombinedError
Converts to this type from the input type.
Source§impl PartialEq for TargetViewError
impl PartialEq for TargetViewError
impl StructuralPartialEq for TargetViewError
Auto Trait Implementations§
impl Freeze for TargetViewError
impl RefUnwindSafe for TargetViewError
impl Send for TargetViewError
impl Sync for TargetViewError
impl Unpin for TargetViewError
impl UnwindSafe for TargetViewError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more