pub enum Kind<R, F> {
    Primary,
    Secondary {
        render_pass: Option<KindSecondaryRenderPass<R, F>>,
        occlusion_query: KindOcclusionQuery,
        query_statistics_flags: QueryPipelineStatisticFlags,
    },
}
Expand description

Determines the kind of command buffer that we want to create.

Variants

Primary

A primary command buffer can execute all commands and can call secondary command buffers.

Secondary

Fields

render_pass: Option<KindSecondaryRenderPass<R, F>>

If Some, can only call draw operations that can be executed from within a specific subpass. Otherwise it can execute all dispatch and transfer operations, but not drawing operations.

occlusion_query: KindOcclusionQuery

Whether it is allowed to have an active occlusion query in the primary command buffer when executing this secondary command buffer.

query_statistics_flags: QueryPipelineStatisticFlags

Which pipeline statistics queries are allowed to be active when this secondary command buffer starts.

Note that the pipeline_statistics_query feature must be enabled if any of the flags of this value are set.

A secondary command buffer.

Implementations

Equivalent to Kind::Primary.

Note: If you use let kind = Kind::Primary; in your code, you will probably get a compilation error because the Rust compiler couldn’t determine the template parameters of Kind. To solve that problem in an easy way you can use this function instead.

Equivalent to Kind::Secondary.

Note: If you use let kind = Kind::Secondary; in your code, you will probably get a compilation error because the Rust compiler couldn’t determine the template parameters of Kind. To solve that problem in an easy way you can use this function instead.

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

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

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.