pub struct CommandBufferInheritanceInfo {
pub render_pass: Option<CommandBufferInheritanceRenderPassType>,
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<CommandBufferInheritanceRenderPassType>
If Some
, the secondary command buffer is required to be executed within a render pass
instance, and can only call draw operations.
If None
, it must be executed outside a render pass instance, 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::empty()
.
_ne: NonExhaustive
Trait Implementations
sourceimpl Clone for CommandBufferInheritanceInfo
impl Clone for CommandBufferInheritanceInfo
sourcefn clone(&self) -> CommandBufferInheritanceInfo
fn clone(&self) -> CommandBufferInheritanceInfo
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more