Documentation ¶
Overview ¶
Package gpu implements the rendering of Gio drawing operations. It is used by package app and package app/headless and is otherwise not useful except for integrating with external window implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
An API carries the necessary GPU API specific resources to create a Device. There is an API type for each supported GPU API such as OpenGL and Direct3D.
type GPU ¶
type GPU interface { // Release non-Go resources. The GPU is no longer valid after Release. Release() // Clear sets the clear color for the next Frame. Clear(color color.NRGBA) // Collect the graphics operations from frame, given the viewport. Collect(viewport image.Point, frame *op.Ops) // Frame clears the color buffer and draws the collected operations. Frame() error // Profile returns the last available profiling information. Profiling // information is requested when Collect sees a ProfileOp, and the result // is available through Profile at some later time. Profile() string }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package headless implements headless windows for rendering an operation list to an image.
|
Package headless implements headless windows for rendering an operation list to an image. |
internal
|
|
rendertest
Package rendertest is intended for testing of drawing ops only.
|
Package rendertest is intended for testing of drawing ops only. |
Click to show internal directories.
Click to hide internal directories.