pub struct Subpass { /* private fields */ }
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 render pass of this subpass.

Returns the index of this subpass within the renderpass.

Returns the subpass description for this subpass.

Returns whether this subpass is the last one in the render pass. If true is returned, calling next_subpass will panic.

Advances to the next subpass after this one.

Panics
  • Panics if there are no more render passes.

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 does not have a read-only depth layout.

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 does not have a read-only stencil layout.

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 true if this subpass is compatible with the fragment output definition.

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
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

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
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.