Index | Files

package gpu

import ""


Package Files

caches.go context.go gpu.go pack.go path.go timer.go

type GPU Uses

type GPU struct {
    // contains filtered or unexported fields

func NewGPU Uses

func NewGPU(ctx gl.Context) (*GPU, error)

func (*GPU) Draw Uses

func (g *GPU) Draw(profile bool, viewport image.Point, frameOps *op.Ops) <-chan struct{}

Draw initiates a draw of a frame. It returns a channel than signals when the frame is no longer being accessed.

func (*GPU) Flush Uses

func (g *GPU) Flush() error

func (*GPU) Refresh Uses

func (g *GPU) Refresh()

func (*GPU) Release Uses

func (g *GPU) Release()

func (*GPU) Timings Uses

func (g *GPU) Timings() string

Package gpu imports 17 packages (graph) and is imported by 2 packages. Updated 2019-11-19. Refresh now. Tools for package owners.