Skip to content

Commit 81f78da

Browse files
committed
Make maxConcurrentFrames const and move to gobal name space
1 parent f600f1f commit 81f78da

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

base/vulkanexamplebase.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
#include "camera.hpp"
7676
#include "benchmark.hpp"
7777

78+
constexpr uint32_t maxConcurrentFrames{ 2 };
79+
7880
class VulkanExampleBase
7981
{
8082
private:
@@ -161,7 +163,6 @@ class VulkanExampleBase
161163

162164
// This sample will be using a new synchronisation setup, which is closer to what should be used with Vulkan
163165
bool useNewSync{ false };
164-
const uint32_t maxConcurrentFrames{ 2 };
165166
uint32_t currentImageIndex{ 0 };
166167
std::vector<VkSemaphore> presentCompleteSemaphores{};
167168
std::vector<VkSemaphore> renderCompleteSemaphores{};

0 commit comments

Comments
 (0)