gpu

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT, Unlicense Imports: 25 Imported by: 0

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

Jump to

Keyboard shortcuts

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