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
sourceimpl Clone for CommandBufferInheritanceInfo
impl Clone for CommandBufferInheritanceInfo
sourcefn clone(&self) -> CommandBufferInheritanceInfo
fn clone(&self) -> CommandBufferInheritanceInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommandBufferInheritanceInfo
impl Debug for CommandBufferInheritanceInfo
Auto Trait Implementations
impl !RefUnwindSafe for CommandBufferInheritanceInfo
impl Send for CommandBufferInheritanceInfo
impl Sync for CommandBufferInheritanceInfo
impl Unpin for CommandBufferInheritanceInfo
impl !UnwindSafe for CommandBufferInheritanceInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more