Enum gfx::ResourceViewError
source · pub enum ResourceViewError {
NoBindFlag,
Channel(ChannelType),
Layer(LayerError),
Unsupported,
}
Expand description
Error creating either a ShaderResourceView, or UnorderedAccessView.
Variants§
NoBindFlag
The corresponding bind flag is not present in the texture.
Channel(ChannelType)
Selected channel type is not supported for this texture.
Layer(LayerError)
Selected layer can not be viewed for this texture.
Unsupported
The backend was refused for some reason.
Trait Implementations§
source§impl Clone for ResourceViewError
impl Clone for ResourceViewError
source§fn clone(&self) -> ResourceViewError
fn clone(&self) -> ResourceViewError
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 ResourceViewError
impl Debug for ResourceViewError
source§impl Display for ResourceViewError
impl Display for ResourceViewError
source§impl Error for ResourceViewError
impl Error for ResourceViewError
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<ResourceViewError> for CombinedError
impl From<ResourceViewError> for CombinedError
source§fn from(e: ResourceViewError) -> CombinedError
fn from(e: ResourceViewError) -> CombinedError
Converts to this type from the input type.
source§impl PartialEq<ResourceViewError> for ResourceViewError
impl PartialEq<ResourceViewError> for ResourceViewError
source§fn eq(&self, other: &ResourceViewError) -> bool
fn eq(&self, other: &ResourceViewError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.