mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-20 02:15:34 +00:00
Metal window resize fixes
This commit is contained in:
@@ -28,6 +28,7 @@ public:
|
||||
#include <Metal/Metal.h>
|
||||
#include <QuartzCore/CAMetalLayer.h>
|
||||
#include <unordered_map>
|
||||
#include <mutex>
|
||||
|
||||
namespace boo
|
||||
{
|
||||
@@ -39,6 +40,9 @@ struct MetalContext
|
||||
struct Window
|
||||
{
|
||||
CAMetalLayer* m_metalLayer = nullptr;
|
||||
std::mutex m_resizeLock;
|
||||
bool m_needsResize;
|
||||
CGSize m_size;
|
||||
};
|
||||
std::unordered_map<IWindow*, Window> m_windows;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user