AI 修复横竖屏的问题
This commit is contained in:
+13
-1
@@ -90,7 +90,19 @@ public:
|
||||
|
||||
// Rebuild the window-dependent Vulkan objects torn down above.
|
||||
// Safe to call only after cleanupForWindowLost().
|
||||
void reinitForNewWindow();
|
||||
// Returns true when the new swapchain's extent or format differs from the
|
||||
// one in use before cleanupForWindowLost(). When true, any pipeline baked
|
||||
// with a static viewport/scissor from swapChainExtent -- including the
|
||||
// FaceApp pipelines -- must be destroyed and recreated against the new
|
||||
// renderPass / extent. Application's own renderPass + graphicsPipeline are
|
||||
// already handled internally.
|
||||
bool reinitForNewWindow();
|
||||
|
||||
// Extent / format captured by the most recent cleanupForWindowLost().
|
||||
// Used by reinitForNewWindow() to decide whether renderPass / pipelines
|
||||
// must be rebuilt against the new swapchain.
|
||||
VkExtent2D _prevSwapChainExtent = {0, 0};
|
||||
VkFormat _prevSwapChainImageFormat = VK_FORMAT_UNDEFINED;
|
||||
|
||||
protected:
|
||||
void loadTexture(std::string path, Texture& tex, bool srgb, VkCommandPool pool);
|
||||
|
||||
Reference in New Issue
Block a user