mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-16 07:19:44 +00:00
VideoBackends:Vulkan: Decouple available command buffers from frames in flight
This commit is contained in:
parent
e8fa867f14
commit
ed75a58061
3 changed files with 89 additions and 52 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue