AI 修复横竖屏的问题
This commit is contained in:
+10
-1
@@ -191,8 +191,17 @@ public:
|
||||
|
||||
// Called from main thread in response to APP_CMD_INIT_WINDOW.
|
||||
// Does the full first-time initVulkan() on the very first call, and a
|
||||
// lightweight swapchain/surface rebuild on subsequent calls.
|
||||
// lightweight swapchain/surface rebuild on subsequent calls. When the
|
||||
// new swapchain's extent or format differs from the previous one, the
|
||||
// FaceApp pipelines (baked with static viewport / old renderPass) are
|
||||
// also destroyed and recreated via recreatePipelinesForSwapchain().
|
||||
void onWindowInit();
|
||||
|
||||
// Destroy and recreate m_graphicsPipeline / m_graphicsPipeline_bg so they
|
||||
// match the current renderPass and swapChainExtent. Descriptor set layouts,
|
||||
// pipeline layouts, vertex/index buffers, uniform buffers and textures are
|
||||
// all kept. Must be called with device idle and the FaceApp mutexes held.
|
||||
void recreatePipelinesForSwapchain();
|
||||
void loadMotionThread();
|
||||
std::thread worker_;
|
||||
bool _isLoadMotion = false;
|
||||
|
||||
Reference in New Issue
Block a user