Struct vulkano::render_pass::SubpassDesc [−][src]
pub struct SubpassDesc { pub color_attachments: Vec<(usize, ImageLayout)>, pub depth_stencil: Option<(usize, ImageLayout)>, pub input_attachments: Vec<(usize, ImageLayout)>, pub resolve_attachments: Vec<(usize, ImageLayout)>, pub preserve_attachments: Vec<usize>, }
Describes one of the subpasses of a render pass.
Restrictions
All these restrictions are checked when the RenderPass
object is created.
TODO: that’s not the case ^
- The number of color attachments must be less than the limit of the physical device.
- All the attachments in
color_attachments
anddepth_stencil
must have the same samples count. - If any attachment is used as both an input attachment and a color or depth/stencil attachment, then each use must use the same layout.
- Elements of
preserve_attachments
must not be used in any of the other members. - If
resolve_attachments
is not empty, then all the resolve attachments must be attachments with 1 sample and all the color attachments must have more than 1 sample. - If
resolve_attachments
is not empty, all the resolve attachments must have the same format as the color attachments. - If the first use of an attachment in this renderpass is as an input attachment and the
attachment is not also used as a color or depth/stencil attachment in the same subpass,
then the loading operation must not be
Clear
.
Fields
color_attachments: Vec<(usize, ImageLayout)>
Indices and layouts of attachments to use as color attachments.
depth_stencil: Option<(usize, ImageLayout)>
Index and layout of the attachment to use as depth-stencil attachment.
input_attachments: Vec<(usize, ImageLayout)>
Indices and layouts of attachments to use as input attachments.
resolve_attachments: Vec<(usize, ImageLayout)>
If not empty, each color attachment will be resolved into each corresponding entry of this list.
If this value is not empty, it must be the same length as color_attachments
.
preserve_attachments: Vec<usize>
Indices of attachments that will be preserved during this pass.
Trait Implementations
impl Clone for SubpassDesc
[src]
impl Clone for SubpassDesc
[src]fn clone(&self) -> SubpassDesc
[src]
fn clone(&self) -> SubpassDesc
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for SubpassDesc
impl Send for SubpassDesc
impl Sync for SubpassDesc
impl Unpin for SubpassDesc
impl UnwindSafe for SubpassDesc
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more