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 ¶
var ErrDeviceLost = driver.ErrDeviceLost
ErrDeviceLost is returned from GPU operations when the underlying GPU device is lost and should be recreated.
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 Direct3D11RenderTarget ¶
type Direct3D11RenderTarget = driver.Direct3D11RenderTarget
Direct3D11RenderTarget is a render target suitable for the Direct3D 11 backend.
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) // Frame draws the graphics operations from op into a viewport of target. Frame(frame *op.Ops, target RenderTarget, viewport image.Point) error }
type MetalRenderTarget ¶
type MetalRenderTarget = driver.MetalRenderTarget
MetalRenderTarget is a render target suitable for the Metal backend.
type OpenGLRenderTarget ¶
type OpenGLRenderTarget = driver.OpenGLRenderTarget
OpenGLRenderTarget is a render target suitable for the OpenGL backend.
type RenderTarget ¶
type RenderTarget = driver.RenderTarget
A RenderTarget denotes the destination framebuffer for a frame.
type VulkanRenderTarget ¶
type VulkanRenderTarget = driver.VulkanRenderTarget
VulkanRenderTarget is a render target suitable for the Vulkan backend.
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. |