36 bool DrawFrame(
float clearR,
float clearG,
float clearB);
43 void CreateCommandPool();
44 void AllocateCommandBuffers();
45 void CreateSyncObjects();
46 void RecordCommandBuffer(VkCommandBuffer cb, uint32_t imageIndex,
47 float r,
float g,
float b);
52 VkCommandPool m_cmdPool = VK_NULL_HANDLE;
53 std::array<VkCommandBuffer, kFramesInFlight> m_cmdBuffers{};
54 std::array<VkSemaphore, kFramesInFlight> m_imageAvailable{};
55 std::array<VkSemaphore, kFramesInFlight> m_renderFinished{};
56 std::array<VkFence, kFramesInFlight> m_inFlight{};
58 uint32_t m_currentFrame = 0;
Owns the Vulkan instance, surface (tied to a GLFW window), physical + logical device,...