Directories
¶
| Path | Synopsis |
|---|---|
|
Package gpu is the device-independent half of Tango's GPU renderer.
|
Package gpu is the device-independent half of Tango's GPU renderer. |
|
atlas
Package atlas is the GPU renderer's persistent mask atlas: an R8 texture holding coverage masks across frames — glyphs (KindGlyph) and filled paths (KindPath).
|
Package atlas is the GPU renderer's persistent mask atlas: an R8 texture holding coverage masks across frames — glyphs (KindGlyph) and filled paths (KindPath). |
|
cpuexec
Package cpuexec runs the GPU quad shader (internal/render/gpu/shaders) on the CPU, so the GPU renderer's pipeline can be tested without a GPU.
|
Package cpuexec runs the GPU quad shader (internal/render/gpu/shaders) on the CPU, so the GPU renderer's pipeline can be tested without a GPU. |
|
d3d11
Package d3d11 is the Direct3D 11 backend of the GPU renderer: a gpu.Device that executes internal/render/gpu frames on a D3D11 device and a presenter that shows them in a window through a DXGI flip-model swap chain.
|
Package d3d11 is the Direct3D 11 backend of the GPU renderer: a gpu.Device that executes internal/render/gpu frames on a D3D11 device and a presenter that shows them in a window through a DXGI flip-model swap chain. |
|
gen
Package gen holds the shader sources generated from internal/render/gpu/shaders.
|
Package gen holds the shader sources generated from internal/render/gpu/shaders. |
|
gl
Package gl is the OpenGL backend of the GPU renderer: a gpu.Device that executes internal/render/gpu frames with OpenGL 3.3 core and a presenter that shows them in a GTK3 GtkGLArea.
|
Package gl is the OpenGL backend of the GPU renderer: a gpu.Device that executes internal/render/gpu frames with OpenGL 3.3 core and a presenter that shows them in a GTK3 GtkGLArea. |
|
gl/nativewindow
Package nativewindow is the hand-over point between a platform canvas that owns a native window (an Android ANativeWindow) and the OpenGL ES presenter that draws into it (gl.NewPresenterAndroid).
|
Package nativewindow is the hand-over point between a platform canvas that owns a native window (an Android ANativeWindow) and the OpenGL ES presenter that draws into it (gl.NewPresenterAndroid). |
|
internal/devkit
Package devkit holds the backend-neutral parts of the GPU devices (internal/render/gpu/d3d11, internal/render/gpu/gl): the layer texture pool, the partial-frame checks, the copy scratch sizing and the clearing quads, written over an abstract texture handle so they are tested on any machine.
|
Package devkit holds the backend-neutral parts of the GPU devices (internal/render/gpu/d3d11, internal/render/gpu/gl): the layer texture pool, the partial-frame checks, the copy scratch sizing and the clearing quads, written over an abstract texture handle so they are tested on any machine. |
|
internal/gpuconf
Package gpuconf is the device conformance suite of the GPU renderer: Conformance runs the checks every gpu.Device backend (internal/render/gpu/metal, internal/render/gpu/d3d11, …) must pass on the same display lists, through gpu.Renderer and directly with hand-built gpu.Frames, comparing the read-back target with paint.CPU at the thresholds of package gputest.
|
Package gpuconf is the device conformance suite of the GPU renderer: Conformance runs the checks every gpu.Device backend (internal/render/gpu/metal, internal/render/gpu/d3d11, …) must pass on the same display lists, through gpu.Renderer and directly with hand-built gpu.Frames, comparing the read-back target with paint.CPU at the thresholds of package gputest. |
|
internal/gputest
Package gputest holds the test scenes and image comparison shared by the GPU renderer's tests (internal/render/gpu with the CPU executor, internal/render/gpu/metal with a real device), so every backend is checked against paint.CPU on the same display lists with the same thresholds.
|
Package gputest holds the test scenes and image comparison shared by the GPU renderer's tests (internal/render/gpu with the CPU executor, internal/render/gpu/metal with a real device), so every backend is checked against paint.CPU on the same display lists with the same thresholds. |
|
internal/racetest
Package racetest reports whether the test binary was built with the race detector, so the GPU renderer's heavy pixel tests (the CPU executor runs the shader per pixel, 10–20× slower under -race) can run a reduced but representative set of cases there and keep the full set otherwise.
|
Package racetest reports whether the test binary was built with the race detector, so the GPU renderer's heavy pixel tests (the CPU executor runs the shader per pixel, 10–20× slower under -race) can run a reduced but representative set of cases there and keep the full set otherwise. |
|
metal
Package metal is the Metal Device of the GPU renderer (internal/render/gpu): it executes gpu.Frames into a persistent offscreen RGBA8 render target that ReadPixels reads back, and NewPresenter shows it in a CAMetalLayer.
|
Package metal is the Metal Device of the GPU renderer (internal/render/gpu): it executes gpu.Frames into a persistent offscreen RGBA8 render target that ReadPixels reads back, and NewPresenter shows it in a CAMetalLayer. |
|
shaders
Package shaders holds the GPU renderer's shaders, written in Go against package sl.
|
Package shaders holds the GPU renderer's shaders, written in Go against package sl. |
|
Package quartz plans retained native layers for macOS windows.
|
Package quartz plans retained native layers for macOS windows. |
|
shader
|
|
|
cmd/tanshader
command
Command tanshader compiles a Go shader package (written against internal/render/shader/sl) to Metal Shading Language, HLSL and GLSL.
|
Command tanshader compiles a Go shader package (written against internal/render/shader/sl) to Metal Shading Language, HLSL and GLSL. |
|
front
Package front is the shader compiler front end: it loads a Go package written against package sl, type-checks it with go/types, checks that it stays inside the shader subset, and lowers it to package ir.
|
Package front is the shader compiler front end: it loads a Go package written against package sl, type-checks it with go/types, checks that it stays inside the shader subset, and lowers it to package ir. |
|
glsl
Package glsl generates GLSL source from a shader ir.Module, for OpenGL 3.3 core (#version 330 core) or, as a dialect of the same output, OpenGL ES 3.0 (#version 300 es, which additionally declares highp default precision for float, int and sampler2D).
|
Package glsl generates GLSL source from a shader ir.Module, for OpenGL 3.3 core (#version 330 core) or, as a dialect of the same output, OpenGL ES 3.0 (#version 300 es, which additionally declares highp default precision for float, int and sampler2D). |
|
hlsl
Package hlsl generates HLSL (shader model 5.0) source from a shader ir.Module, for Direct3D 11.
|
Package hlsl generates HLSL (shader model 5.0) source from a shader ir.Module, for Direct3D 11. |
|
ir
Package ir is the structured intermediate representation shared by the shader front end (Go AST lowering) and the backends (Metal emission, CPU execution).
|
Package ir is the structured intermediate representation shared by the shader front end (Go AST lowering) and the backends (Metal emission, CPU execution). |
|
msl
Package msl generates Metal Shading Language source from a shader ir.Module.
|
Package msl generates Metal Shading Language source from a shader ir.Module. |
|
sl
Package sl is the shading language that GPU shaders are written in.
|
Package sl is the shading language that GPU shaders are written in. |
Click to show internal directories.
Click to hide internal directories.