Code cleanup

This commit is contained in:
Sascha Willems 2020-04-20 20:29:15 +02:00
parent 9fc8b0032c
commit 458c149c71
13 changed files with 4 additions and 109 deletions

View file

@ -71,6 +71,8 @@ private:
void createSynchronizationPrimitives();
void initSwapchain();
void setupSwapChain();
void createCommandBuffers();
void destroyCommandBuffers();
protected:
// Frame counter to display fps
uint32_t frameCounter = 0;
@ -332,13 +334,6 @@ public:
/** @brief (Virtual) Called after the physical device features have been read, can be used to set features to enable on the device */
virtual void getEnabledFeatures();
/** @brief Checks if command buffers are valid (!= VK_NULL_HANDLE) */
bool checkCommandBuffers();
/** @brief Creates the per-frame command buffers */
void createCommandBuffers();
/** @brief Destroy all command buffers and set their handles to VK_NULL_HANDLE */
void destroyCommandBuffers();
/** @brief Creates and returns a new command buffer */
VkCommandBuffer createCommandBuffer(VkCommandBufferLevel level, bool begin);
/** @brief End the command buffer, submit it to the queue and free (if requested) */