logo
pub struct RenderPassBeginInfo {
    pub framebuffer: Arc<Framebuffer>,
    pub render_area_offset: [u32; 2],
    pub render_area_extent: [u32; 2],
    pub clear_values: Vec<ClearValue>,
    pub _ne: NonExhaustive,
}
Expand description

Parameters to begin a new render pass.

Fields

framebuffer: Arc<Framebuffer>

The framebuffer to use for rendering.

There is no default value.

render_area_offset: [u32; 2]

The offset from the top left corner of the framebuffer that will be rendered to.

The default value is [0, 0].

render_area_extent: [u32; 2]

The size of the area that will be rendered to.

render_area_offset + render_area_extent must not be greater than [framebuffer.extent()].

The default value is [framebuffer.extent()].

clear_values: Vec<ClearValue>

The clear values that should be used for the attachments in the framebuffer.

There must be exactly [framebuffer.attachments().len()] elements provided, and each one must match the attachment format.

The default value is empty, which must be overridden if the framebuffer has attachments.

_ne: NonExhaustive

Implementations

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.