Enum vulkano::device::DeviceCreationError
source · pub enum DeviceCreationError {
InitializationFailed,
TooManyObjects,
DeviceLost,
FeatureNotPresent,
ExtensionNotPresent,
TooManyQueuesForFamily,
PriorityOutOfRange,
OutOfHostMemory,
OutOfDeviceMemory,
ExtensionRestrictionNotMet(ExtensionRestrictionError),
FeatureRestrictionNotMet(FeatureRestrictionError),
}
Expand description
Error that can be returned when creating a device.
Variants§
InitializationFailed
Failed to create the device for an implementation-specific reason.
TooManyObjects
You have reached the limit to the number of devices that can be created from the same physical device.
DeviceLost
Failed to connect to the device.
FeatureNotPresent
Some of the requested features are unsupported by the physical device.
ExtensionNotPresent
Some of the requested device extensions are not supported by the physical device.
TooManyQueuesForFamily
Tried to create too many queues for a given family.
PriorityOutOfRange
The priority of one of the queues is out of the [0.0; 1.0] range.
OutOfHostMemory
There is no memory available on the host (ie. the CPU, RAM, etc.).
OutOfDeviceMemory
There is no memory available on the device (ie. video memory).
ExtensionRestrictionNotMet(ExtensionRestrictionError)
A restriction for an extension was not met.
FeatureRestrictionNotMet(FeatureRestrictionError)
A restriction for a feature was not met.
Trait Implementations§
source§impl Clone for DeviceCreationError
impl Clone for DeviceCreationError
source§fn clone(&self) -> DeviceCreationError
fn clone(&self) -> DeviceCreationError
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 DeviceCreationError
impl Debug for DeviceCreationError
source§impl Display for DeviceCreationError
impl Display for DeviceCreationError
source§impl Error for DeviceCreationError
impl Error for DeviceCreationError
1.30.0 · 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 DeviceCreationError
impl From<ExtensionRestrictionError> for DeviceCreationError
source§fn from(err: ExtensionRestrictionError) -> Self
fn from(err: ExtensionRestrictionError) -> Self
Converts to this type from the input type.
source§impl From<FeatureRestrictionError> for DeviceCreationError
impl From<FeatureRestrictionError> for DeviceCreationError
source§fn from(err: FeatureRestrictionError) -> Self
fn from(err: FeatureRestrictionError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for DeviceCreationError
impl From<VulkanError> for DeviceCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.