Documentation ¶
Overview ¶
Package mtl is a tiny subset of the Metal API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { // Headless indicates whether a device is configured as headless. Headless bool // LowPower indicates whether a device is low-power. LowPower bool // Removable determines whether or not a GPU is removable. Removable bool // RegistryID is the registry ID value for the device. RegistryID uint64 // Name is the name of the device. Name string }
Device is abstract representation of the GPU that serves as the primary interface for a Metal app.
func CopyAllDevices ¶
func CopyAllDevices() []Device
CopyAllDevices returns all Metal devices in the system.
func CreateSystemDefaultDevice ¶
CreateSystemDefaultDevice returns the preferred system default Metal device.
Click to show internal directories.
Click to hide internal directories.