Enum ccthw::graphics::GraphicsError
source · pub enum GraphicsError {
NoSuitablePhysicalDevice,
RuntimeError(Error),
InstanceError(InstanceError),
AllocatorError(AllocatorError),
VulkanError(Result),
}
Variants§
NoSuitablePhysicalDevice
RuntimeError(Error)
InstanceError(InstanceError)
AllocatorError(AllocatorError)
VulkanError(Result)
Trait Implementations§
source§impl Debug for GraphicsError
impl Debug for GraphicsError
source§impl Display for GraphicsError
impl Display for GraphicsError
source§impl Error for GraphicsError
impl Error for GraphicsError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AllocatorError> for GraphicsError
impl From<AllocatorError> for GraphicsError
source§fn from(source: AllocatorError) -> Self
fn from(source: AllocatorError) -> Self
Converts to this type from the input type.
source§impl From<Error> for GraphicsError
impl From<Error> for GraphicsError
source§impl From<InstanceError> for GraphicsError
impl From<InstanceError> for GraphicsError
source§fn from(source: InstanceError) -> Self
fn from(source: InstanceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GraphicsError
impl Send for GraphicsError
impl Sync for GraphicsError
impl Unpin for GraphicsError
impl !UnwindSafe for GraphicsError
Blanket Implementations§
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.