pub enum DriverError {
    InvalidData,
    Unsupported,
    OutOfMemory,
}
Expand description

Describes the general category of all graphics driver failure cases.

In the event of a failure you should follow the Screen 13 code to the responsible Vulkan API and then to the Ash stub call; it will generally contain a link to the appropriate specification. The specifications provide a table of possible error conditions which can be a good starting point to debug the issue.

Feel free to open an issue on GitHub, here for help debugging the issue.

Variants

InvalidData

The input data, or referenced data, is not valid for the current state.

Unsupported

The requested feature, or input configuration, is not supported for the current state.

OutOfMemory

The device has run out of physical memory.

Many drivers return this value for generic or unhandled error conditions.

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.