Struct vulkano::render_pass::Subpass [−][src]
pub struct Subpass { /* fields omitted */ }
Expand description
Represents a subpass within a RenderPass
object.
This struct doesn’t correspond to anything in Vulkan. It is simply an equivalent to a
tuple of a render pass and subpass index. Contrary to a tuple, however, the existence of the
subpass is checked when the object is created. When you have a Subpass
you are guaranteed
that the given subpass does exist.
Implementations
Returns a handle that represents a subpass of a render pass.
Returns the subpass description for this subpass.
Returns whether this subpass is the last one in the render pass. If true
is returned,
next_subpass
will return None
.
Tries to advance to the next subpass after this one, and returns true
if successful.
Returns the number of color attachments in this subpass.
Returns true if the subpass has a depth attachment or a depth-stencil attachment.
Returns true if the subpass has a depth attachment or a depth-stencil attachment whose
layout is not DepthStencilReadOnlyOptimal
.
Returns true if the subpass has a stencil attachment or a depth-stencil attachment.
Returns true if the subpass has a stencil attachment or a depth-stencil attachment whose
layout is not DepthStencilReadOnlyOptimal
.
Returns true if the subpass has any color or depth/stencil attachment.
Returns the number of samples in the color and/or depth/stencil attachments. Returns None
if there is no such attachment in this subpass.
Returns the render pass of this subpass.
Returns true
if this subpass is compatible with the fragment output definition.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Subpass
impl UnwindSafe for Subpass
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.