8.1.1. demo_build_image_ownership_cmd 函数

8.1.1.1. VkCommandBufferUsageFlags

  • VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT specifies that each recording of the command buffer will only be submitted once, and the command buffer will be reset and recorded again between each submission.

    指定 command buffer 中的每个 recording 只会被提交一次,在每个提交之间 command buffer 会重置并重新记录。

  • VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT specifies that a secondary command buffer is considered to be entirely inside a render pass. If this is a primary command buffer, then this bit is ignored.

    指定 secondary command buffer 被认为完全位于 render pass 中。如果这是一个 primary command buffer ,那么这个标志位被忽略。

  • VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT specifies that a command buffer can be resubmitted to a queue while it is in the pending state, and recorded into multiple primary command buffers.