修复 crash 的问题
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user