消除了所有的警告

This commit is contained in:
xsl
2025-10-17 18:55:00 +08:00
parent 95b080cd01
commit 966382a7dd
4 changed files with 79 additions and 39 deletions
+7 -5
View File
@@ -47,10 +47,12 @@ private:
std::vector<VkFramebuffer> swapChainFramebuffers; // 帧缓冲区
VkQueue presentQueue; // 呈现队列
VkCommandPool commandPool; // 命令池
std::vector <VkCommandBuffer> commandBuffers; // 命令缓冲区
std::vector<VkSemaphore> imageAvailableSemaphores; // 图像可用信号量
std::vector<VkSemaphore> renderFinishedSemaphores; // 渲染完成信号量
std::vector<VkFence> inFlightFences; // 同步栅栏
VkCommandPool commandPool;
std::vector<VkCommandBuffer> commandBuffers;
std::vector<VkSemaphore> imageAvailableSemaphores; // 每个交换链图像一个
std::vector<VkSemaphore> renderFinishedSemaphores; // 每个交换链图像一个
std::vector<VkFence> inFlightFences; // 每个帧在飞行一个
std::vector<VkFence> imagesInFlight; // 跟踪每个图像的使用状态
int currentFrame = 0;
int MAX_FRAMES_IN_FLIGHT = 2;
};