pub enum PhysicalDeviceError {
VulkanError(VulkanError),
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
NotSupported,
QueueFamilyIndexOutOfRange {
queue_family_index: u32,
queue_family_count: u32,
},
}
Expand description
Error that can happen when using a physical device.
Variants
VulkanError(VulkanError)
RequirementNotMet
NotSupported
QueueFamilyIndexOutOfRange
The provided queue_family_index
was not less than the number of queue families in the
physical device.
Trait Implementations
sourceimpl Clone for PhysicalDeviceError
impl Clone for PhysicalDeviceError
sourcefn clone(&self) -> PhysicalDeviceError
fn clone(&self) -> PhysicalDeviceError
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 moresourceimpl Debug for PhysicalDeviceError
impl Debug for PhysicalDeviceError
sourceimpl Display for PhysicalDeviceError
impl Display for PhysicalDeviceError
sourceimpl Error for PhysicalDeviceError
impl Error for PhysicalDeviceError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<VulkanError> for PhysicalDeviceError
impl From<VulkanError> for PhysicalDeviceError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PhysicalDeviceError> for PhysicalDeviceError
impl PartialEq<PhysicalDeviceError> for PhysicalDeviceError
sourcefn eq(&self, other: &PhysicalDeviceError) -> bool
fn eq(&self, other: &PhysicalDeviceError) -> bool
impl Eq for PhysicalDeviceError
impl StructuralEq for PhysicalDeviceError
impl StructuralPartialEq for PhysicalDeviceError
Auto Trait Implementations
impl RefUnwindSafe for PhysicalDeviceError
impl Send for PhysicalDeviceError
impl Sync for PhysicalDeviceError
impl Unpin for PhysicalDeviceError
impl UnwindSafe for PhysicalDeviceError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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