pub struct RenderPassCreateInfo {
    pub flags: RenderPassCreateFlags,
    pub attachments: Vec<AttachmentDescription>,
    pub subpasses: Vec<SubpassDescription>,
    pub dependencies: Vec<SubpassDependency>,
    pub correlated_view_masks: Vec<u32>,
    pub _ne: NonExhaustive,
}
Expand description

Parameters to create a new RenderPass.

Fields§

§flags: RenderPassCreateFlags

Additional properties of the render pass.

The default value is empty.

§attachments: Vec<AttachmentDescription>

The attachments available for the render pass.

The default value is empty.

§subpasses: Vec<SubpassDescription>

The subpasses that make up this render pass.

A render pass must contain at least one subpass.

The default value is empty, which must be overridden.

§dependencies: Vec<SubpassDependency>

The dependencies between subpasses.

The default value is empty.

§correlated_view_masks: Vec<u32>

If multiview rendering is being used (the subpasses have a nonzero view_mask), this specifies sets of views that may be more efficient to render concurrently, for example because they show the same geometry from almost the same perspective. This is an optimization hint to the implementation, and does not affect the final result.

The value is a bitmask, so that that for example 0b11 means that the first two views are highly correlated, and 0b101 means the first and third view are highly correlated. Each view bit must appear in at most one element of the list.

If multiview rendering is not being used, the value must be empty.

The default value is empty.

§_ne: NonExhaustive

Trait Implementations§

source§

impl Clone for RenderPassCreateInfo

source§

fn clone(&self) -> RenderPassCreateInfo

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 RenderPassCreateInfo

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for RenderPassCreateInfo

source§

fn default() -> Self

Returns the “default value” for a type. 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.