修改完了,还报警告。 先保存

This commit is contained in:
xsl
2025-10-17 18:10:23 +08:00
parent a392206f96
commit 95b080cd01
3 changed files with 89 additions and 68 deletions
+6 -5
View File
@@ -45,11 +45,12 @@ private:
VkPipelineLayout pipelineLayout; // 管线布局
VkPipeline graphicsPipeline; // 图形管线
std::vector<VkFramebuffer> swapChainFramebuffers; // 帧缓冲区
VkCommandPool commandPool; // 命令池
VkCommandBuffer commandBuffer; // 命令缓冲区
VkSemaphore imageAvailableSemaphore; // 图像可用信号量
VkSemaphore renderFinishedSemaphore; // 渲染完成信号量
VkFence inFlightFence; // 同步栅栏
VkQueue presentQueue; // 呈现队列
VkCommandPool commandPool; // 命令池
std::vector <VkCommandBuffer> commandBuffers; // 命令缓冲区
std::vector<VkSemaphore> imageAvailableSemaphores; // 图像可用信号量
std::vector<VkSemaphore> renderFinishedSemaphores; // 渲染完成信号量
std::vector<VkFence> inFlightFences; // 同步栅栏
int currentFrame = 0;
};