Enum vulkano::instance::InstanceCreationError
source · pub enum InstanceCreationError {
OomError(OomError),
InitializationFailed,
LayerNotPresent,
ExtensionNotPresent,
IncompatibleDriver,
ExtensionRestrictionNotMet(ExtensionRestrictionError),
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
}
Expand description
Error that can happen when creating an instance.
Variants§
OomError(OomError)
Not enough memory.
InitializationFailed
Failed to initialize for an implementation-specific reason.
LayerNotPresent
One of the requested layers is missing.
ExtensionNotPresent
One of the requested extensions is not supported by the implementation.
IncompatibleDriver
The version requested is not supported by the implementation.
ExtensionRestrictionNotMet(ExtensionRestrictionError)
A restriction for an extension was not met.
RequirementNotMet
Trait Implementations§
source§impl Clone for InstanceCreationError
impl Clone for InstanceCreationError
source§fn clone(&self) -> InstanceCreationError
fn clone(&self) -> InstanceCreationError
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 InstanceCreationError
impl Debug for InstanceCreationError
source§impl Display for InstanceCreationError
impl Display for InstanceCreationError
source§impl Error for InstanceCreationError
impl Error for InstanceCreationError
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<ExtensionRestrictionError> for InstanceCreationError
impl From<ExtensionRestrictionError> for InstanceCreationError
source§fn from(err: ExtensionRestrictionError) -> Self
fn from(err: ExtensionRestrictionError) -> Self
Converts to this type from the input type.
source§impl From<OomError> for InstanceCreationError
impl From<OomError> for InstanceCreationError
source§impl From<VulkanError> for InstanceCreationError
impl From<VulkanError> for InstanceCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.