diff options
Diffstat (limited to 'tools/gfx/apple')
| -rw-r--r-- | tools/gfx/apple/cocoa-util.h | 2 | ||||
| -rw-r--r-- | tools/gfx/apple/cocoa-util.mm | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/tools/gfx/apple/cocoa-util.h b/tools/gfx/apple/cocoa-util.h index 565783ee9..e9d29b87c 100644 --- a/tools/gfx/apple/cocoa-util.h +++ b/tools/gfx/apple/cocoa-util.h @@ -9,7 +9,7 @@ struct CocoaUtil { static void* createMetalLayer(void* nswindow); static void destroyMetalLayer(void* metalLayer); - + static void* nextDrawable(void* metalLayer) ; }; } diff --git a/tools/gfx/apple/cocoa-util.mm b/tools/gfx/apple/cocoa-util.mm index 29c3056a9..5c12e587a 100644 --- a/tools/gfx/apple/cocoa-util.mm +++ b/tools/gfx/apple/cocoa-util.mm @@ -22,10 +22,18 @@ void* CocoaUtil::createMetalLayer(void* nswindow) return layer; } +void* CocoaUtil::nextDrawable(void* metalLayer) +{ + CAMetalLayer* layer = (CAMetalLayer*)metalLayer; + return [layer nextDrawable]; +} + void CocoaUtil::destroyMetalLayer(void* metalLayer) { CAMetalLayer* layer = (CAMetalLayer*)metalLayer; [layer release]; } -}
\ No newline at end of file + + +} |
