logo
pub struct RenderPassCreateInfo {
    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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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