mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
metal: hook up the backbuffer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user