Metal window resize fixes

This commit is contained in:
Jack Andersen
2015-12-09 12:23:22 -10:00
parent 9baff7a2bc
commit 2983262173
3 changed files with 74 additions and 23 deletions

View File

@@ -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;
};