mtldriver

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(f func(screen.Screen))

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.

Types

This section is empty.

Directories

Path Synopsis
internal
appkit
Package appkit provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
Package appkit provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
coreanim
Package coreanim provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
Package coreanim provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL