Enum gfx_hal::error::DeviceCreationError
source · pub enum DeviceCreationError {
OutOfHostMemory,
OutOfDeviceMemory,
InitializationFailed,
MissingExtension,
MissingFeature,
TooManyObjects,
DeviceLost,
}
Expand description
Device creation errors during open
.
Variants
OutOfHostMemory
Memory allocation on the host side failed. This could be caused by a lack of memory.
OutOfDeviceMemory
Memory allocation on the device side failed. This could be caused by a lack of memory.
InitializationFailed
Device initialization failed due to implementation specific errors.
MissingExtension
At least one of the user requested extensions if not supported by the physical device.
MissingFeature
At least one of the user requested features if not supported by the physical device.
Use features
for checking the supported features.
TooManyObjects
Too many logical devices have been created from this physical device.
The implementation may only support one logical device for each physical device or lacks resources to allocate a new device.
DeviceLost
The logical or physical device are lost during the device creation process.
This may be caused by hardware failure, physical device removal, power outage, etc.
Trait Implementations
sourceimpl Clone for DeviceCreationError
impl Clone for DeviceCreationError
sourcefn clone(&self) -> DeviceCreationError
fn clone(&self) -> DeviceCreationError
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for DeviceCreationError
impl Debug for DeviceCreationError
sourceimpl Display for DeviceCreationError
impl Display for DeviceCreationError
sourceimpl Fail for DeviceCreationError
impl Fail for DeviceCreationError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Backtrace
carried by this failure, if it
carries one. Read more