metal: hook up the backbuffer

This commit is contained in:
Alex Szpakowski
2020-04-23 18:38:29 -03:00
parent acc4064a6c
commit 99b39065b6
7 changed files with 89 additions and 23 deletions
+5
View File
@@ -23,6 +23,9 @@
#include "graphics/Graphics.h"
#include "Metal.h"
@class CAMetalLayer;
@protocol CAMetalDrawable;
namespace love
{
namespace graphics
@@ -177,6 +180,8 @@ private:
id<MTLRenderCommandEncoder> renderEncoder;
id<MTLBlitCommandEncoder> blitEncoder;
CAMetalLayer *metalLayer;
id<CAMetalDrawable> activeDrawable;
MTLRenderPassDescriptor *passDesc;
uint32 dirtyRenderState;