Enum vulkano::command_buffer::submit::SubmitPresentError
source · [−]#[repr(u32)]
pub enum SubmitPresentError {
OomError(OomError),
DeviceLost,
SurfaceLost,
FullScreenExclusiveModeLost,
OutOfDate,
PresentIdLessThanOrEqual,
}
Expand description
Error that can happen when submitting the present prototype.
Variants
OomError(OomError)
Not enough memory.
DeviceLost
The connection to the device has been lost.
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.
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.
PresentIdLessThanOrEqual
A non-zero present_id must be greater than any non-zero present_id passed previously for the same swapchain.
Trait Implementations
sourceimpl Clone for SubmitPresentError
impl Clone for SubmitPresentError
sourcefn clone(&self) -> SubmitPresentError
fn clone(&self) -> SubmitPresentError
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 SubmitPresentError
impl Debug for SubmitPresentError
sourceimpl Display for SubmitPresentError
impl Display for SubmitPresentError
sourceimpl Error for SubmitPresentError
impl Error for SubmitPresentError
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<SubmitPresentError> for FlushError
impl From<SubmitPresentError> for FlushError
sourcefn from(err: SubmitPresentError) -> FlushError
fn from(err: SubmitPresentError) -> FlushError
Converts to this type from the input type.
sourceimpl From<VulkanError> for SubmitPresentError
impl From<VulkanError> for SubmitPresentError
sourcefn from(err: VulkanError) -> SubmitPresentError
fn from(err: VulkanError) -> SubmitPresentError
Converts to this type from the input type.
sourceimpl PartialEq<SubmitPresentError> for SubmitPresentError
impl PartialEq<SubmitPresentError> for SubmitPresentError
sourcefn eq(&self, other: &SubmitPresentError) -> bool
fn eq(&self, other: &SubmitPresentError) -> bool
impl Copy for SubmitPresentError
impl Eq for SubmitPresentError
impl StructuralEq for SubmitPresentError
impl StructuralPartialEq for SubmitPresentError
Auto Trait Implementations
impl RefUnwindSafe for SubmitPresentError
impl Send for SubmitPresentError
impl Sync for SubmitPresentError
impl Unpin for SubmitPresentError
impl UnwindSafe for SubmitPresentError
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