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

pub enum Kind<R, F> {
    Primary,
    Secondary,
    SecondaryRenderPass {
        subpass: Subpass<R>,
        framebuffer: Option<F>,
    },
}

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 can execute all dispatch and transfer operations, but not drawing operations.

A secondary command buffer within a render pass can only call draw operations that can be executed from within a specific subpass.

Fields of SecondaryRenderPass

Which subpass this secondary command buffer can be called from.

The framebuffer object that will be used when calling the command buffer. This parameter is optional and is an optimization hint for the implementation.

Methods

impl Kind<RenderPass<EmptySinglePassRenderPassDesc>, Framebuffer<RenderPass<EmptySinglePassRenderPassDesc>, ()>>
[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.

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]

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more