gpu

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT, Unlicense Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeviceLost = driver.ErrDeviceLost

Functions

This section is empty.

Types

type API

type API = driver.API

type Direct3D11

type Direct3D11 = driver.Direct3D11

type Direct3D11RenderTarget

type Direct3D11RenderTarget = driver.Direct3D11RenderTarget

type FBO

type FBO struct {
	// contains filtered or unexported fields
}

type GPU

type GPU interface {
	Release()

	Clear(color color.NRGBA)

	Frame(frame *op.Ops, target RenderTarget, viewport image.Point) error
}

func New

func New(api API) (GPU, error)

func NewWithDevice

func NewWithDevice(d driver.Device) (GPU, error)

type Metal

type Metal = driver.Metal

type MetalRenderTarget

type MetalRenderTarget = driver.MetalRenderTarget

type OpenGL

type OpenGL = driver.OpenGL

type OpenGLRenderTarget

type OpenGLRenderTarget = driver.OpenGLRenderTarget

type RenderTarget

type RenderTarget = driver.RenderTarget

type Vulkan

type Vulkan = driver.Vulkan

type VulkanRenderTarget

type VulkanRenderTarget = driver.VulkanRenderTarget

Directories

Path Synopsis
internal
opengl
glErr() flushes pre-existing GL errors before a fallible call; the prior error is intentionally discarded.
glErr() flushes pre-existing GL errors before a fallible call; the prior error is intentionally discarded.

Jump to

Keyboard shortcuts

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