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 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
    }

    func New

    func New(ctx backend.Device) (GPU, error)

    Directories

    Path Synopsis