kMaxGraphicsCommandBuffers is now initialized to KRENGINE_MAX_FRAMES_IN_FLIGHT rather than using a magic number.

This commit is contained in:
2022-09-15 19:18:54 -07:00
parent 4d0158c0ec
commit cc4efe34e1

View File

@@ -311,7 +311,7 @@ bool KRDevice::initCommandPools()
bool KRDevice::initCommandBuffers() bool KRDevice::initCommandBuffers()
{ {
const int kMaxGraphicsCommandBuffers = 10; // TODO - This needs to be dynamic? const int kMaxGraphicsCommandBuffers = KRENGINE_MAX_FRAMES_IN_FLIGHT;
m_graphicsCommandBuffers.resize(kMaxGraphicsCommandBuffers); m_graphicsCommandBuffers.resize(kMaxGraphicsCommandBuffers);
const int kMaxComputeCommandBuffers = 4; // TODO - This needs to be dynamic? const int kMaxComputeCommandBuffers = 4; // TODO - This needs to be dynamic?