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
sourceimpl Clone for DeviceCreationError
impl Clone for DeviceCreationError
sourcefn clone(&self) -> DeviceCreationError
fn clone(&self) -> DeviceCreationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DeviceCreationError
impl Debug for DeviceCreationError
sourceimpl Display for DeviceCreationError
impl Display for DeviceCreationError
sourceimpl Error for DeviceCreationError
impl Error for DeviceCreationError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ExtensionRestrictionError> for DeviceCreationError
impl From<ExtensionRestrictionError> for DeviceCreationError
sourcefn from(err: ExtensionRestrictionError) -> Self
fn from(err: ExtensionRestrictionError) -> Self
Converts to this type from the input type.
sourceimpl From<FeatureRestrictionError> for DeviceCreationError
impl From<FeatureRestrictionError> for DeviceCreationError
sourcefn from(err: FeatureRestrictionError) -> Self
fn from(err: FeatureRestrictionError) -> Self
Converts to this type from the input type.
impl Copy for DeviceCreationError
Auto Trait Implementations
impl RefUnwindSafe for DeviceCreationError
impl Send for DeviceCreationError
impl Sync for DeviceCreationError
impl Unpin for DeviceCreationError
impl UnwindSafe for DeviceCreationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more