pub struct AcquiredFrame {
    pub image_index: usize,
    pub frame_index: usize,
    pub ready: Semaphore,
    pub complete: Fence,
    pub invalidate_images: bool,
}
Expand description

Information necessary to render a frame, from Swapchain::acquire

Fields

image_index: usize

Index of the image to write to in Swapchain::images

frame_index: usize

Index of the frame in flight, for use tracking your own per-frame resources, which may be accessed immediately after Swapchain::acquire returns

ready: Semaphore

Must be waited on before accessing the image associated with image_index

complete: Fence

Must be signaled when access to the image associated with image_index and any per-frame resources associated with frame_index is complete

invalidate_images: bool

Set whenever Swapchain::images has, and Swapchain::extent and Swapchain::format may have, changed since the last Swapchain::acquire call. Use this to invalidate derived resources like vk::ImageViews and vk::Framebuffers, taking care not to destroy them until at least SwapchainOptions::frames_in_flight new frames have been acquired, including this one.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.