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

Parameters to begin a new render pass.

Fields§

§render_pass: Arc<RenderPass>

The render pass to begin.

If this is not the render pass that framebuffer was created with, it must be compatible with that render pass.

The default value is the render pass of framebuffer.

§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<Option<ClearValue>>

Provides, for each attachment in render_pass that has a load operation of AttachmentLoadOp::Clear, 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.

To skip over an attachment whose load operation is something else, provide None.

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

§_ne: NonExhaustive

Implementations§

Trait Implementations§

source§

impl Clone for RenderPassBeginInfo

source§

fn clone(&self) -> RenderPassBeginInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RenderPassBeginInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.