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
commit ed75a58061
No known key found for this signature in database
GPG key ID: 3824904F14D40757
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
{