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
Primary
A primary command buffer can execute all commands and can call secondary command buffers.
Secondary
A secondary command buffer can execute all dispatch and transfer operations, but not drawing operations.
SecondaryRenderPass
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
subpass: Subpass<R> | Which subpass this secondary command buffer can be called from. |
framebuffer: Option<F> | 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]
fn primary(
) -> Kind<RenderPass<EmptySinglePassRenderPassDesc>, Framebuffer<RenderPass<EmptySinglePassRenderPassDesc>, ()>>
) -> Kind<RenderPass<EmptySinglePassRenderPassDesc>, Framebuffer<RenderPass<EmptySinglePassRenderPassDesc>, ()>>
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 ofKind
. To solve that problem in an easy way you can use this function instead.
fn secondary(
) -> Kind<RenderPass<EmptySinglePassRenderPassDesc>, Framebuffer<RenderPass<EmptySinglePassRenderPassDesc>, ()>>
) -> Kind<RenderPass<EmptySinglePassRenderPassDesc>, Framebuffer<RenderPass<EmptySinglePassRenderPassDesc>, ()>>
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 ofKind
. 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]
impl<R: Clone, F: Clone> Clone for Kind<R, F>
[src]
fn clone(&self) -> Kind<R, F>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more