修复 crash 的问题

This commit is contained in:
xsl
2025-09-16 23:04:08 +08:00
parent 742635813b
commit a8eebf519f
2 changed files with 52 additions and 0 deletions
@@ -24,6 +24,8 @@
#include <ktx.h>
#include "api_vulkan_sample.h"
#include <thread>
#include <mutex>
// Vertex layout for this example
struct TextureLoadingVertexStructure
@@ -117,6 +119,16 @@ public:
public:
void prepare_pipeline_bg();
private:
std::thread workerThread;
bool running = false;
public:
//void run();
//void start();
std::mutex mtx;
//void stop();
//void updateTexture();
};
std::unique_ptr<vkb::Application> create_texture_loading();