Added full sync for buffers
This commit is contained in:
@@ -72,12 +72,15 @@ private:
|
||||
VkPipeline graphicsPipeline;
|
||||
|
||||
VkCommandPool commandPool;
|
||||
VkCommandBuffer commandBuffer;
|
||||
std::vector<VkCommandBuffer> commandBuffers;
|
||||
|
||||
VkSemaphore imageAvailableSemaphore, renderFinishedSemaphore;
|
||||
VkFence inFlightFence;
|
||||
std::vector<VkSemaphore> imageAvailableSemaphores, renderFinishedSemaphores;
|
||||
std::vector<VkFence> inFlightFences;
|
||||
|
||||
std::vector<VkFramebuffer> swapChainFramebuffers;
|
||||
|
||||
const int MAX_FRAMES_IN_FLIGHT = 2;
|
||||
uint32_t currentFrame = 0;
|
||||
#pragma endregion
|
||||
|
||||
bool checkValidationLayerSupport();
|
||||
@@ -102,7 +105,7 @@ private:
|
||||
void createRenderPass();
|
||||
void createFrameBuffers();
|
||||
void createCommandPool();
|
||||
void createCommandBuffer();
|
||||
void createCommandBuffers();
|
||||
void recordCommandBuffer(VkCommandBuffer commandBuffer, uint32_t imageIndex);
|
||||
void createSyncObjects();
|
||||
void drawFrame();
|
||||
|
||||
Reference in New Issue
Block a user