Enum vulkano::swapchain::PresentWaitError
source · #[repr(u32)]
pub enum PresentWaitError {
OomError(OomError),
DeviceLost,
OutOfDate,
SurfaceLost,
FullScreenExclusiveModeLost,
Timeout,
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
PresentIdZero,
}
Expand description
Error that can happen when calling acquire_next_image
.
Variants§
OomError(OomError)
Not enough memory.
DeviceLost
The connection to the device has been lost.
OutOfDate
The surface has changed in a way that makes the swapchain unusable. You must query the surface’s new properties and recreate a new swapchain if you want to continue drawing.
SurfaceLost
The surface is no longer accessible and must be recreated.
FullScreenExclusiveModeLost
The swapchain has lost or doesn’t have full-screen exclusivity possibly for implementation-specific reasons outside of the application’s control.
Timeout
The timeout of the function has been reached before the present occured.
RequirementNotMet
PresentIdZero
Present id of zero is invalid.
Trait Implementations§
source§impl Clone for PresentWaitError
impl Clone for PresentWaitError
source§fn clone(&self) -> PresentWaitError
fn clone(&self) -> PresentWaitError
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 PresentWaitError
impl Debug for PresentWaitError
source§impl Display for PresentWaitError
impl Display for PresentWaitError
source§impl Error for PresentWaitError
impl Error for PresentWaitError
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<OomError> for PresentWaitError
impl From<OomError> for PresentWaitError
source§fn from(err: OomError) -> PresentWaitError
fn from(err: OomError) -> PresentWaitError
Converts to this type from the input type.
source§impl From<VulkanError> for PresentWaitError
impl From<VulkanError> for PresentWaitError
source§fn from(err: VulkanError) -> PresentWaitError
fn from(err: VulkanError) -> PresentWaitError
Converts to this type from the input type.
source§impl PartialEq<PresentWaitError> for PresentWaitError
impl PartialEq<PresentWaitError> for PresentWaitError
source§fn eq(&self, other: &PresentWaitError) -> bool
fn eq(&self, other: &PresentWaitError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.