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.

If this value is not empty, the pipeline_statistics_query feature must be enabled on the device.

The default value is QueryPipelineStatisticFlags::empty().

§_ne: NonExhaustive

Trait Implementations§

source§

impl Clone for CommandBufferInheritanceInfo

source§

fn clone(&self) -> CommandBufferInheritanceInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CommandBufferInheritanceInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for CommandBufferInheritanceInfo

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.