gpu,app/internal/wm: add Metal port

The OpenGL (ES) implementations on Apple platforms are deprecated and
don't support GPU compute programs. This change adds support for the
replacement, the Metal GPU API.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-08-03 16:53:42 +02:00
parent a7f08eedf3
commit 3b2992c37e
21 changed files with 1603 additions and 151 deletions
+1 -3
View File
@@ -423,11 +423,9 @@ func gio_onClose(view C.CFTypeRef) {
deleteView(view)
w.w.Event(system.DestroyEvent{})
w.displayLink.Close()
w.displayLink = nil
C.CFRelease(w.view)
w.view = 0
C.CFRelease(w.window)
w.window = 0
*w = window{}
}
//export gio_onHide