import "golang.org/x/exp/shiny/driver/mtldriver"
Package mtldriver provides a Metal driver for accessing a screen.
At this time, the Metal API is used only to present the final pixels to the screen. All rendering is performed on the CPU via the image/draw algorithms. Future work is to use mtl.Buffer, mtl.Texture, etc., and do more of the rendering work on the GPU.
buffer.go mtldriver.go screen.go texture.go window.go
Main is called by the program's main function to run the graphical application.
It calls f on the Screen, possibly in a separate goroutine, as some OS- specific libraries require being on 'the main thread'. It returns when f returns.
Path | Synopsis |
---|---|
internal/appkit | Package appkit provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit). |
internal/coreanim | Package coreanim provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore). |
Package mtldriver imports 20 packages (graph). Updated 2020-12-30 with GOOS=darwin. Refresh now. Tools for package owners.