Struct vulkano::render_pass::RenderPassCreateInfo
source · 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.
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
impl Clone for RenderPassCreateInfo
source§fn clone(&self) -> RenderPassCreateInfo
fn clone(&self) -> RenderPassCreateInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more