Struct vulkano::render_pass::RenderPassCreateInfo
source · [−]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.
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
sourceimpl Clone for RenderPassCreateInfo
impl Clone for RenderPassCreateInfo
sourcefn clone(&self) -> RenderPassCreateInfo
fn clone(&self) -> RenderPassCreateInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RenderPassCreateInfo
impl Debug for RenderPassCreateInfo
Auto Trait Implementations
impl RefUnwindSafe for RenderPassCreateInfo
impl Send for RenderPassCreateInfo
impl Sync for RenderPassCreateInfo
impl Unpin for RenderPassCreateInfo
impl UnwindSafe for RenderPassCreateInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more