logo
pub struct CommandBufferInheritanceInfo {
    pub render_pass: Option<CommandBufferInheritanceRenderPassInfo>,
    pub occlusion_query: Option<QueryControlFlags>,
    pub query_statistics_flags: QueryPipelineStatisticFlags,
    pub _ne: NonExhaustive,
}
Expand description

The context that a secondary command buffer can inherit from the primary command buffer it’s executed in.

Fields

render_pass: Option<CommandBufferInheritanceRenderPassInfo>

If Some, the secondary command buffer is required to be executed within a specific render subpass, and can only call draw operations. If None, it must be executed outside a render pass, and can execute dispatch and transfer operations, but not drawing operations.

The default value is None.

occlusion_query: Option<QueryControlFlags>

If Some, the secondary command buffer is allowed to be executed within a primary that has an occlusion query active. The inner QueryControlFlags specifies which flags the active occlusion is allowed to have enabled. If None, the primary command buffer cannot have an occlusion query active when this secondary command buffer is executed.

The inherited_queries feature must be enabled if this is Some.

The default value is None.

query_statistics_flags: QueryPipelineStatisticFlags

Which pipeline statistics queries are allowed to be active on the primary command buffer when this secondary command buffer is executed.

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

The default value is QueryPipelineStatisticFlags::none().

_ne: NonExhaustive

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

Returns the “default value” for a type. 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

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.