Struct vulkano::swapchain::PresentInfo
source · [−]pub struct PresentInfo<W> {
pub swapchain: Arc<Swapchain<W>>,
pub index: usize,
pub present_id: Option<u64>,
pub present_region: Option<PresentRegion>,
pub _ne: NonExhaustive,
}
Expand description
Parameters for
swapchain::present
and
GpuFuture::then_swapchain_present
.
Fields
swapchain: Arc<Swapchain<W>>
The Swapchain
to present to.
index: usize
The same index that acquire_next_image
returned. The image must have been acquired first.
present_id: Option<u64>
A present id used for this present call.
Must be greater than previously used.
If this value is zero it is equivalent to None
.
If the present_id
feature is not enabled on the device, the parameter will be ignored.
present_region: Option<PresentRegion>
Areas outside the present region may be ignored by Vulkan in order to optimize presentation.
This is just an optimization hint, as the Vulkan driver is free to ignore the given present region.
If khr_incremental_present
extension is not enabled on the device, the parameter will be ignored.
_ne: NonExhaustive
Implementations
Trait Implementations
sourceimpl<W: Clone> Clone for PresentInfo<W>
impl<W: Clone> Clone for PresentInfo<W>
sourcefn clone(&self) -> PresentInfo<W>
fn clone(&self) -> PresentInfo<W>
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<W: Debug> Debug for PresentInfo<W>
impl<W: Debug> Debug for PresentInfo<W>
sourceimpl<W: PartialEq> PartialEq<PresentInfo<W>> for PresentInfo<W>
impl<W: PartialEq> PartialEq<PresentInfo<W>> for PresentInfo<W>
sourcefn eq(&self, other: &PresentInfo<W>) -> bool
fn eq(&self, other: &PresentInfo<W>) -> bool
impl<W: Eq> Eq for PresentInfo<W>
impl<W> StructuralEq for PresentInfo<W>
impl<W> StructuralPartialEq for PresentInfo<W>
Auto Trait Implementations
impl<W> !RefUnwindSafe for PresentInfo<W>
impl<W> Send for PresentInfo<W>where
W: Send + Sync,
impl<W> Sync for PresentInfo<W>where
W: Send + Sync,
impl<W> Unpin for PresentInfo<W>
impl<W> !UnwindSafe for PresentInfo<W>
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