Struct vulkano::command_buffer::cb::UnsafeCommandBufferBuilder [] [src]

pub struct UnsafeCommandBufferBuilder<P> where
    P: CommandPool
{ /* fields omitted */ }

Command buffer being built.

You can add commands to an UnsafeCommandBufferBuilder by using the AddCommand trait. The AddCommand<&Cmd> trait is implemented on the UnsafeCommandBufferBuilder for any Cmd that is a raw Vulkan command.

When you are finished adding commands, you can use the CommandBufferBuild trait to turn this builder into an UnsafeCommandBuffer.

Methods

impl<P> UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

Creates a new builder.

Safety

Creating and destroying an unsafe command buffer is not unsafe per se, but the commands that you add to it are unchecked, do not have any synchronization, and are not kept alive.

In other words, it is your job to make sure that the commands you add are valid, that they don't use resources that have been destroyed, and that they do not introduce any race condition.

Note: Some checks are still made with debug_assert!. Do not expect to be able to submit invalid commands.

Creates a new command buffer builder from an already-allocated command buffer.

Safety

See the new method.

The kind must match how the command buffer was allocated.

Trait Implementations

impl<P> DeviceOwned for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

Returns the device that owns Self.

impl<P> CommandBufferBuilder for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

Returns the queue family of the command buffer builder.

Adds a command that writes the content of a buffer. Read more

Adds a command that writes data to a buffer.

Adds a command that copies from a buffer to another.

Adds a command that copies the content of a buffer to an image. Read more

Same as copy_buffer_to_image but lets you specify a range for the destination image.

Adds a command that starts a render pass. Read more

Adds a command that jumps to the next subpass of the current render pass.

Adds a command that ends the current render pass. Read more

Adds a command that draws. Read more

Adds a command that draws indexed vertices. Read more

Adds an indirect draw command. Read more

Executes a compute shader.

Builds the actual command buffer. Read more

Returns true if the pool of the builder supports graphics operations.

Returns true if the pool of the builder supports compute operations.

impl<P> VulkanObject for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The type of the object.

Returns a reference to the object.

impl<P> CommandBufferBuild for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The type of the built command buffer.

Error that can be returned when building.

Builds the command buffer.

impl<'a, P, Rp, F> AddCommand<&'a CmdBeginRenderPass<Rp, F>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, Pl, S> AddCommand<&'a CmdBindDescriptorSets<S, Pl>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, B> AddCommand<&'a CmdBindIndexBuffer<B>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, Pl> AddCommand<&'a CmdBindPipeline<Pl>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, B> AddCommand<&'a CmdBindVertexBuffers<B>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, S, D> AddCommand<&'a CmdBlitImage<S, D>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P> AddCommand<&'a CmdClearAttachments> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, S, D> AddCommand<&'a CmdCopyBuffer<S, D>> for UnsafeCommandBufferBuilder<P> where
    S: BufferAccess,
    D: BufferAccess,
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, S, D> AddCommand<&'a CmdCopyBufferToImage<S, D>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, S, D> AddCommand<&'a CmdCopyImage<S, D>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P> AddCommand<&'a CmdDispatchRaw> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P> AddCommand<&'a CmdDrawIndexedRaw> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, B, P> AddCommand<&'a CmdDrawIndirectRaw<B>> for UnsafeCommandBufferBuilder<P> where
    B: BufferAccess,
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P> AddCommand<&'a CmdDrawRaw> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P> AddCommand<&'a CmdEndRenderPass> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, Cb> AddCommand<&'a CmdExecuteCommands<Cb>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, B> AddCommand<&'a CmdFillBuffer<B>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P> AddCommand<&'a CmdNextSubpass> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P> AddCommand<&'a CmdPipelineBarrier<'a>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, Pc, Pl> AddCommand<&'a CmdPushConstants<Pc, Pl>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool,
    Pl: PipelineLayoutAbstract
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, S, D> AddCommand<&'a CmdResolveImage<S, D>> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P> AddCommand<&'a CmdSetEvent> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P> AddCommand<&'a CmdSetState> for UnsafeCommandBufferBuilder<P> where
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more

impl<'a, P, B, D> AddCommand<&'a CmdUpdateBuffer<B, D>> for UnsafeCommandBufferBuilder<P> where
    B: BufferAccess,
    P: CommandPool
[src]

The new command buffer builder type.

Adds the command. This takes ownership of the builder and returns a new builder with the command appended at the end of it. Read more