Enum vulkano::command_buffer::sys::Kind [] [src]

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

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

Variants

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

A secondary command buffer.

Fields of Secondary

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.

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

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.

Methods

impl Kind<RenderPass<EmptySinglePassRenderPassDesc>, Framebuffer<RenderPass<EmptySinglePassRenderPassDesc>, ()>>
[src]

[src]

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.

[src]

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

impl<R: Debug, F: Debug> Debug for Kind<R, F>
[src]

[src]

Formats the value using the given formatter. Read more

impl<R: Clone, F: Clone> Clone for Kind<R, F>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<R, F> Send for Kind<R, F> where
    F: Send,
    R: Send

impl<R, F> Sync for Kind<R, F> where
    F: Sync,
    R: Sync