Command Buffers and Synchronization

In this chapter, we will cover the following recipes:

  • Creating a command pool
  • Allocating command buffers
  • Beginning a command buffer recording operation
  • Ending a command buffer recording operation
  • Resetting a command buffer
  • Resetting a command pool
  • Creating a semaphore
  • Creating a fence
  • Waiting for fences
  • Resetting fences
  • Submitting command buffers to a queue
  • Synchronizing two command buffers
  • Checking if processing of a submitted command buffer has finished
  • Waiting until all commands submitted to a queue are finished
  • Waiting for all submitted commands to be finished
  • Destroying a fence
  • Destroying a semaphore
  • Freeing command buffers
  • Destroying a command pool

Get Vulkan Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.