VideoBackends:Vulkan: Decouple available command buffers from frames in flight

This commit is contained in:
Robin Kertels
2022-10-01 01:17:38 +02:00
parent e8fa867f14
commit ed75a58061
3 changed files with 89 additions and 52 deletions

View File

@ -11,10 +11,12 @@
namespace Vulkan
{
// Number of command buffers. Having two allows one buffer to be
// executed whilst another is being built.
// Number of command buffers.
constexpr size_t NUM_COMMAND_BUFFERS = 2;
// Number of frames in flight, will be used to decide how many descriptor pools are used
constexpr size_t NUM_FRAMES_IN_FLIGHT = 2;
// Staging buffer usage - optimize for uploads or readbacks
enum STAGING_BUFFER_TYPE
{