save code

This commit is contained in:
xsl
2025-12-24 21:01:14 +08:00
parent f5b2d490c0
commit 6ef6e012bd
6 changed files with 53 additions and 8 deletions
+2 -1
View File
@@ -66,6 +66,7 @@ protected:
VkPipeline graphicsPipeline; // 图形管线
std::vector<VkFramebuffer> swapChainFramebuffers; // 帧缓冲区
VkQueue presentQueue; // 呈现队列
bool _sceondInited = true;
public:
VkCommandPool commandPool;
@@ -78,8 +79,8 @@ public:
int currentFrame = 0;
int MAX_FRAMES_IN_FLIGHT = 2;
bool _applicationInited = false;
void cleanupSecondInit();
bool _sceondInited = true;
protected:
void loadTexture(std::string path, Texture& tex, bool srgb, VkCommandPool pool);