Skip to content

Commit

Permalink
Fix CAMetalLayer Objective-C binding
Browse files Browse the repository at this point in the history
  • Loading branch information
chances committed Mar 23, 2024
1 parent 4a4c156 commit da57777
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/platform/wgpu.d
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ version (OSX) {
extern (Objective-C) {
/// An object that manages image-based content and allows you to perform animations on that content.
/// See_Also: https://developer.apple.com/documentation/quartzcore/calayer?language=objc
extern class CALayer {
interface CALayer {}
/// A Core Animation layer that Metal can render into, typically to be displayed onscreen.
/// See_Also: https://developer.apple.com/documentation/quartzcore/cametallayer?language=objc
class CAMetalLayer : CALayer {
/// Creates and returns an instance of the layer object.
/// See_Also: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc
static CALayer layer() @selector("layer");
static CAMetalLayer layer() @selector("layer");
}
/// A Core Animation layer that Metal can render into, typically to be displayed onscreen.
/// See_Also: https://developer.apple.com/documentation/quartzcore/cametallayer?language=objc
extern class CAMetalLayer : CALayer {}
/// A window that an app displays on the screen.
/// See_Also: https://developer.apple.com/documentation/appkit/nswindow?language=objc
extern interface NSWindow {
Expand Down

0 comments on commit da57777

Please sign in to comment.