Skip to content

Start2 of 5

Getting started

Install the kit, draw a first frame and host it as a scene, in a project of your own.

On this page

TypeGPU Kit is a set of GPU on TypeGPU. Each borrows your root and records into your passes. You create the device, run the loop and submit the commands. This page sets up a web project, draws a and hands it to a .

The kit’s initializer writes the web project this page builds into a new directory:

npm create @typegpu/kit my-scene

In a terminal the initializer asks which scene to start from: the shader this page builds, or another of the starter scenes. Pass --scene lit to choose the lit scene without a prompt. With npm, put it after --. Without a terminal, the initializer defaults to the shader scene.

my-scene gets the packages and configuration from Install and an AGENTS.md for coding agents. Its canvas page is the one from Host a scene, running the scene you chose. The initializer prints the commands that install the packages and start Vite. To add the kit to a project you already have, follow the rest of this page.

In a Vite project, install the kit, TypeGPU and its noise and colour packages. As dev dependencies, install Vite, the TypeGPU bundler plugin, tsover in place of TypeScript, and WebGPU’s types:

npm i @typegpu/kit typegpu @typegpu/noise @typegpu/color
npm i -D vite unplugin-typegpu typescript@npm:tsover@6.0.2 @webgpu/types

The plugin compiles your 'use gpu' functions for the GPU. Add it to Vite:

vite.config.ts
import typegpu from 'unplugin-typegpu/vite';
import { defineConfig } from 'vite';
export default defineConfig({ plugins: [typegpu()] });

Give TypeScript WebGPU’s types, and the disposable types that kit objects implement for using:

tsconfig.json
{
"compilerOptions": {
"types": ["@webgpu/types", "vite/client"],
"lib": ["ES2024", "DOM", "DOM.Iterable", "ESNext.Disposable"]
}
}

The code on this site imports files by their .ts names. For this setup, use allowImportingTsExtensions with noEmit. Vite’s TypeScript templates set both.

The page needs a canvas and the script that draws into it:

index.html
<body style="margin: 0">
<canvas style="display: block; width: 100vw; height: 100vh"></canvas>
<script type="module" src="/src/index.ts"></script>
</body>

The script asks TypeGPU for a root, its handle on the GPU. A surface configures the canvas for the root and sizes its drawing buffer from the canvas layout and pixel ratio. A fragment function colours every pixel of a triangle that covers the canvas. A frame loop gives each frame an encoder and submits it when your function returns:

The frame this section draws. Turn on Glow to add a bloom.
src/index.ts
import {
import frames
frames
} from '@typegpu/kit';
import * as
import web
web
from '@typegpu/kit/web';
import {
import common
common
,
import d
d
,
import std
std
,
const tgpu: {
const: typeof import("node_modules/typegpu/core/constant/tgpuConstant").constant;
fn: typeof import("node_modules/typegpu/core/function/tgpuFn").fn;
comptime: typeof import("node_modules/typegpu/core/function/comptime").comptime;
resolve: typeof import("node_modules/typegpu/core/resolve/tgpuResolve").resolve;
resolveWithContext: typeof import("node_modules/typegpu/core/resolve/tgpuResolve").resolveWithContext;
init: typeof import("node_modules/typegpu/core/root/init").init;
initFromDevice: typeof import("node_modules/typegpu/core/root/init").initFromDevice;
slot: typeof import("node_modules/typegpu/core/slot/slot").slot;
lazy: typeof import("node_modules/typegpu/core/slot/lazy").lazy;
... 10 more ...;
'~unstable': typeof import("node_modules/typegpu/tgpuUnstable");
}

@module ― typegpu

tgpu
} from 'typegpu';
const
const root: TgpuRoot
root
= await
const tgpu: {
const: typeof import("node_modules/typegpu/core/constant/tgpuConstant").constant;
fn: typeof import("node_modules/typegpu/core/function/tgpuFn").fn;
comptime: typeof import("node_modules/typegpu/core/function/comptime").comptime;
resolve: typeof import("node_modules/typegpu/core/resolve/tgpuResolve").resolve;
resolveWithContext: typeof import("node_modules/typegpu/core/resolve/tgpuResolve").resolveWithContext;
init: typeof import("node_modules/typegpu/core/root/init").init;
initFromDevice: typeof import("node_modules/typegpu/core/root/init").initFromDevice;
slot: typeof import("node_modules/typegpu/core/slot/slot").slot;
lazy: typeof import("node_modules/typegpu/core/slot/lazy").lazy;
... 10 more ...;
'~unstable': typeof import("node_modules/typegpu/tgpuUnstable");
}

@module ― typegpu

tgpu
.
init: (options?: InitOptions) => Promise<TgpuRoot>

Requests a new GPU device and creates a root around it. If a specific device should be used instead, use

@see ― initFromDevice. *

@example

When given no options, the function will ask the browser for a suitable GPU device.

const root = await tgpu.init();

@example

If there are specific options that should be used when requesting a device, you can pass those in.

const adapterOptions: GPURequestAdapterOptions = ...;
const deviceDescriptor: GPUDeviceDescriptor = ...;
const root = await tgpu.init({ adapter: adapterOptions, device: deviceDescriptor });

init
();
const
const surface: web.Surface
surface
=
import web
web
.
function surface(root: TgpuRoot, canvas: HTMLCanvasElement, options?: web.SurfaceOptions): web.Surface

Configures a canvas for the root. Matches its drawing buffer to the layout size or the fixed options.size. Throws if the fixed size is invalid.

@param ― canvas the canvas it configures and sizes

@returns ― a surface you draw into and destroy

surface
(
const root: TgpuRoot
root
,
var document: Document

window.document returns a reference to the document contained in the window.

MDN Reference

document
.
ParentNode.querySelector<"canvas">(selectors: "canvas"): HTMLCanvasElement | null (+4 overloads)

Returns the first element that is a descendant of node that matches selectors.

MDN Reference

querySelector
('canvas')!);
const
const time: TgpuUniform<d.F32>
time
=
const root: TgpuRoot
root
.
TgpuRoot.createUniform<d.F32>(typeSchema: d.F32, initial?: number | ((buffer: TgpuBuffer<NoInfer<d.F32>>) => void) | undefined): TgpuUniform<d.F32> (+1 overload)

Allocates memory on the GPU, allows passing data between host and shader. Read-only on the GPU, optimized for small data. For a general-purpose buffer, use

TgpuRoot.createBuffer

.

@param ― typeSchema The type of data that this buffer will hold.

@param ― initial Either initial value of the buffer, or an initializer to execute on the mapped buffer. (optional)

createUniform
(
import d
d
.
const f32: d.F32
export f32

A schema that represents a 32-bit float value. (equivalent to f32 in WGSL)

Can also be called to cast a value to an f32.

@example const value = f32(); // 0

@example const value = f32(1.23); // 1.23

@example const value = f32(true); // 1

f32
);
const
const rings: TgpuFragmentFn<{
uv: d.Vec2f;
}, d.Vec4f>
rings
=
const tgpu: {
const: typeof import("node_modules/typegpu/core/constant/tgpuConstant").constant;
fn: typeof import("node_modules/typegpu/core/function/tgpuFn").fn;
comptime: typeof import("node_modules/typegpu/core/function/comptime").comptime;
resolve: typeof import("node_modules/typegpu/core/resolve/tgpuResolve").resolve;
resolveWithContext: typeof import("node_modules/typegpu/core/resolve/tgpuResolve").resolveWithContext;
init: typeof import("node_modules/typegpu/core/root/init").init;
initFromDevice: typeof import("node_modules/typegpu/core/root/init").initFromDevice;
slot: typeof import("node_modules/typegpu/core/slot/slot").slot;
lazy: typeof import("node_modules/typegpu/core/slot/lazy").lazy;
... 10 more ...;
'~unstable': typeof import("node_modules/typegpu/tgpuUnstable");
}

@module ― typegpu

tgpu
.
fragmentFn: <{
uv: d.Vec2f;
}, d.Vec4f>(options: {
in: {
uv: d.Vec2f;
};
out: d.Vec4f;
}) => TgpuFragmentFnShell<{
uv: d.Vec2f;
}, d.Vec4f> (+1 overload)
fragmentFn
({
in: {
uv: d.Vec2f;
}
in
: {
uv: d.Vec2f
uv
:
import d
d
.
const vec2f: d.Vec2f
vec2f
},
out: d.Vec4f
out
:
import d
d
.
const vec4f: d.Vec4f
vec4f
})(({
uv: d.v2f
uv
}) => {
'use gpu';
const
const wave: number
wave
=
import std
std
.
function sin(value: number): number (+1 overload)
export sin
sin
(
import std
std
.
length<d.v2f>(value: d.v2f): number (+1 overload)
export length
length
(
uv: d.v2f
uv
- 0.5) * 40 -
const time: TgpuUniform<d.F32>
time
.
TgpuUniform<F32>.$: number
$
* 3) * 0.5 + 0.5;
return
import d
d
.
const vec4f: d.Vec4f
(x: number, y: number, z: number, w: number) => d.v4f (+9 overloads)
vec4f
(0.2, 0.6, 1, 1) *
const wave: number
wave
;
});
const
const drawing: TgpuRenderPipeline<d.Vec4f>
drawing
=
const root: TgpuRoot
root
.
WithBinding.createRenderPipeline<{}, {}, {
uv: import("node_modules/typegpu/data/wgslTypes").Vec2f;
}, d.Vec4f>(descriptor: TgpuRenderPipeline<in Targets = never>.DescriptorBase & {
attribs?: {} | undefined;
vertex: TgpuVertexFn<{}, {
uv: import("node_modules/typegpu/data/wgslTypes").Vec2f;
}> | ((input: AutoVertexIn<InferGPURecord<AttribRecordToDefaultDataTypes<{}>>>) => AutoVertexOut<AnyAutoCustoms>);
fragment: TgpuFragmentFn<{
uv: import("node_modules/typegpu/data/wgslTypes").Vec2f;
} & Record<string, AnyFragmentInputBuiltin>, d.Vec4f> | ((input: AutoFragmentIn<...>) => d.v4f | (AnyAutoCustoms & Partial<...>));
targets?: TgpuColorTargetState;
}): TgpuRenderPipeline<...> (+2 overloads)
createRenderPipeline
({
vertex: TgpuVertexFn<{}, {
uv: import("node_modules/typegpu/data/wgslTypes").Vec2f;
}> | ((input: AutoVertexIn<InferGPURecord<AttribRecordToDefaultDataTypes<{}>>>) => AutoVertexOut<AnyAutoCustoms>)
vertex
:
import common
common
.
const fullScreenTriangle: TgpuVertexFn<{}, {
uv: import("node_modules/typegpu/data/wgslTypes").Vec2f;
}>
export fullScreenTriangle

A vertex function that defines a single full-screen triangle out of three points.

@example

import { common } from 'typegpu';
const pipeline = root.createRenderPipeline({
vertex: common.fullScreenTriangle,
fragment: yourFragmentShader,
});
pipeline.draw(3);

fullScreenTriangle
,
fragment: TgpuFragmentFn<{
uv: import("node_modules/typegpu/data/wgslTypes").Vec2f;
} & Record<string, AnyFragmentInputBuiltin>, d.Vec4f> | ((input: AutoFragmentIn<InferGPURecord<{
uv: import("node_modules/typegpu/data/wgslTypes").Vec2f;
}>>) => d.v4f | (AnyAutoCustoms & Partial<InferGPURecord<{
readonly $fragDepth: import("node_modules/typegpu/builtin").BuiltinFragDepth;
readonly $sampleMask: import("node_modules/typegpu/builtin").BuiltinSampleMask;
}>>))
fragment
:
const rings: TgpuFragmentFn<{
uv: d.Vec2f;
}, d.Vec4f>
rings
,
targets?: TgpuColorTargetState
targets
: {
format?: GPUTextureFormat | undefined

The

GPUTextureFormat

of this color target. The pipeline will only be compatible with

GPURenderPassEncoder

s which use a

GPUTextureView

of this format in the corresponding color attachment.

@default ― navigator.gpu.getPreferredCanvasFormat()

format
:
const surface: web.Surface
surface
.
Surface.format: GPUTextureFormat

Reports the format of its textures, which pipelines that draw into it target.

format
},
});
const
const loop: frames.Frames
loop
=
import frames
frames
.
function create(root: TgpuRoot, record: Recorder): frames.Frames

Records a frame into one encoder and submits once, with a clock. Borrows the root. The synchronous recorder borrows each frame's encoder.

@submits ― always once a frame after your recorder returns, and again at each frame.submit()

@param ― record your frame, recorded into each frame's encoder

@returns ― a loop you run with each frame's time and destroy

create
(
const root: TgpuRoot
root
, (
frame: frames.Frame
frame
) => {
const time: TgpuUniform<d.F32>
time
.
TgpuBufferBindingBase<F32>.write(data: number, options?: BufferWriteOptions): void
write
(
frame: frames.Frame
frame
.
Frame.time: number

Reports seconds since the first submitted frame.

time
);
const
const pass: TgpuRenderPass
pass
=
frame: frames.Frame
frame
.
Frame.encoder: TgpuCommandEncoder

Records commands for submission after the recorder returns. submit() replaces this encoder. Read it at each call instead of keeping it, and let the frame submit it.

encoder
.
TgpuCommandEncoder.beginRenderPass(descriptor: TgpuRenderPassDescriptor): TgpuRenderPass

Begins recording a render pass. Attachment views accept TypeGPU textures, texture views and canvas contexts, next to raw

GPUTextureView

s.

beginRenderPass
({
TgpuRenderPassDescriptor.colorAttachments?: ColorAttachment | readonly (ColorAttachment | null)[] | undefined
colorAttachments
: {
ColorAttachment.view: GPUTextureView | (ColorTextureConstraint & RenderFlag) | TgpuTextureView<d.WgslTexture<WgslTextureProps>> | TgpuTextureRenderView | GPUCanvasContext

A

GPUTextureView

describing the texture subresource that will be output to for this color attachment.

view
:
const surface: web.Surface
surface
.
Surface.view(frame: frames.Frame): GPUTextureView

Returns a view of the current canvas texture, created once per texture. Applies pending size changes first, which a pass using context would skip.

view
(
frame: frames.Frame
frame
) } });
const pass: TgpuRenderPass
pass
.
TgpuRenderCommands.setPipeline(pipeline: TgpuRenderPipeline): void

Sets the current

TgpuRenderPipeline

for subsequent draw calls

setPipeline
(
const drawing: TgpuRenderPipeline<d.Vec4f>
drawing
);
const pass: TgpuRenderPass
pass
.
TgpuRenderCommands.draw(vertexCount: number, instanceCount?: number, firstVertex?: number, firstInstance?: number): void
draw
(3);
const pass: TgpuRenderPass
pass
.
TgpuRenderPass.end(): void

Completes the recording of this render pass

end
();
});
import frames
frames
.
function animate(loop: Pick<frames.Frames, "run"> & Partial<Pick<frames.Frames, "seconds">>, options?: frames.AnimateOptions): frames.Animation
export animate

Runs the loop on each scheduled frame. Time advances by at most maxDt per frame, never steps back, and stops while the surface is paused. Destroying the animation keeps the loop alive. Another animation on the same loop continues from its recorded time. A frame error, or a run that returns false because the loop was destroyed, stops the animation.

@param ― loop the loop to run on each unpaused frame. Continues from its seconds if it ran before

@returns ― an animation you destroy to stop the frames

animate
(
const loop: frames.Frames
loop
);

Start Vite, then open the page in a WebGPU browser:

npx vite

Blue rings ripple out from the middle of the canvas. How the kit works takes this frame apart line by line.

Move what you draw into a that exports createScene(root, surface). Have the return an object with a frame function. Include a destroy function when the scene has resources to free. A scene holds no loop or page code, so it runs unchanged on the web, on React Native and in a test.

src/scene.ts
import type {
(alias) interface Frame
import Frame

Represents one frame being recorded. Each run creates a separate object, so modules can compare frames by identity.

Frame
,
(alias) interface Surface
import Surface

Provides a destination for frames, such as a canvas from web.surface or native.surface, or a texture from offscreenSurface in a test. Pass the frame to view for code that works with every destination.

Surface
} from '@typegpu/kit';
import type {
(alias) interface TgpuRoot
import TgpuRoot
TgpuRoot
} from 'typegpu';
export async function
function createScene(root: TgpuRoot, surface: Surface): Promise<{
frame(frame: Frame): void;
}>
createScene
(
root: TgpuRoot
root
:
(alias) interface TgpuRoot
import TgpuRoot
TgpuRoot
,
surface: Surface
surface
:
(alias) interface Surface
import Surface

Provides a destination for frames, such as a canvas from web.surface or native.surface, or a texture from offscreenSurface in a test. Pass the frame to view for code that works with every destination.

Surface
) {
// The uniform, fragment function and pipeline from index.ts
return {
function frame(frame: Frame): void
frame
(
frame: Frame
frame
:
(alias) interface Frame
import Frame

Represents one frame being recorded. Each run creates a separate object, so modules can compare frames by identity.

Frame
) {
// The body of the frame loop from index.ts
},
};
}

web.host creates the root, surface and loop, runs the scene and reports its first error. Its handle’s destroy() tears them down in order:

src/index.ts
import * as
import web
web
from '@typegpu/kit/web';
import {
function createScene(root: TgpuRoot, surface: Surface): Promise<{
frame(frame: Frame): void;
}>
createScene
} from './scene.ts';
import web
web
.
function host<{
frame(frame: Frame): void;
}>(createScene: web.CreateScene<Record<never, never>, {
frame(frame: Frame): void;
}>, hosting: web.HostOptions<{
frame(frame: Frame): void;
}>): web.Hosted<{
frame(frame: Frame): void;
}> (+1 overload)

Runs a scene on a canvas with a root, surface, frame loop and animation. destroy tears them down in order. Use send to control the scene or onFrame to read it. If scene options are optional, call host(createScene, { canvas }). Throws if both device and root are supplied.

@param ― createScene the scene file's createScene

@param ― options the scene's third argument

@param ― hosting the canvas, the device or root, and what the page runs beside the scene

@returns ― a hosted scene you send closures to and destroy

host
(
function createScene(root: TgpuRoot, surface: Surface): Promise<{
frame(frame: Frame): void;
}>
createScene
, {
HostOptions<S extends Scene>.canvas: HTMLCanvasElement

Supplies the canvas for the scene.

canvas
:
var document: Document

window.document returns a reference to the document contained in the window.

MDN Reference

document
.
ParentNode.querySelector<"canvas">(selectors: "canvas"): HTMLCanvasElement | null (+4 overloads)

Returns the first element that is a descendant of node that matches selectors.

MDN Reference

querySelector
('canvas')! });

The picture stays the same. The hosting page covers controlling the scene from the page, input, and running it on React Native.

  • Starter scenes gives four whole src/scene.ts files to start from: this shader, a lit mesh with a shadow, a frame finished with bloom, and particles stepped on the GPU.
  • The tutorials build examples in this project, starting from no graphics or TypeGPU knowledge.
  • How the kit works gives the seven rules every module follows.
  • The module map and the examples show what the kit covers.
  • Coding agents get the kit’s rules from the package.

The packages ship built JavaScript and type declarations, with their 'use gpu' functions already transformed. The plugin transforms your own 'use gpu' functions. Vector operators in them, such as a * b, type-check only under tsover, TypeGPU’s fork of TypeScript. It replaces typescript, so a project on another TypeScript version moves to tsover’s.

A few entries need optional peers:

Import Needs
text’s font baker, @typegpu/kit/fontBaker and typegpu-kit-bake-font @pmndrs/glyph and Node 24.2 or later, at build time. On React Native, add rgba to Metro’s assetExts for the .
@typegpu/kit/native/host, /native/react and /native/runtimes React 19, React Native 0.88.1, react-native-webgpu 0.21.1 and react-native-worklets 0.13.1 or later. Only /native/react imports React.
@typegpu/kit/testing/dawn webgpu (dawn.node) and vitest. With pnpm 11, add webgpu: false to allowBuilds. Its build script only clears macOS’s quarantine flag.
@typegpu/kit/testing/warnings vitest, for the warning checks in a test setup.

The packages ship built JavaScript, so leave them to Vite’s dependency prebundling, and add no resolve.dedupe. If you exclude them from optimizeDeps while TypeGPU stays prebundled, the page loads two copies of TypeGPU. It warns “Found duplicate TypeGPU version”, then fails on its first schema.

Vite leaves out the of a kit namespace that your code never reads. esbuild keeps every member of a namespace you import from @typegpu/kit. In an esbuild build, import members from the module’s subpath instead:

import {
function fixedStep(options: FixedStepOptions): FixedStep

Accumulates elapsed time for fixed simulation steps. Accumulates nothing while paused. Throws unless step is finite and above 0 and maxSteps is an integer above 0.

@returns ― a clock whose update says how many steps to run each frame

fixedStep
} from '@typegpu/kit/clock';
const
const sim: FixedStep
sim
=
function fixedStep(options: FixedStepOptions): FixedStep

Accumulates elapsed time for fixed simulation steps. Accumulates nothing while paused. Throws unless step is finite and above 0 and maxSteps is an integer above 0.

@returns ― a clock whose update says how many steps to run each frame

fixedStep
({
FixedStepOptions.step: number

Sets the step duration in seconds, such as 1 / 120.

step
: 1 / 120 });

Each kit minor runs on one TypeGPU minor, the one its peer range names. A patch release changes nothing you call. A minor release can change the kit in three ways, and its notes list every change:

  • The contract changes only by addition. Your own modules and scenes are written against it:
    • frames, Frame and the optional helper owner, and the fill helpers Inject, Injectable, byStage, unfilled and Checked
    • the drawing contract of passes: Drawing, Compound, Into, Built, Drawn, Output with passes.output, and what reads from its
    • cameras.current and the Camera schema, FloatTexture, and the post source types
    • the hosting contract, Scene, CreateScene and Surface, and the in @typegpu/kit/testing
    • how every module behaves: the root comes first and is borrowed, destroy() frees only what the factory made, initAsync() is optional, and inject() can be called any number of times
  • A module keeps its import path, namespace, factory names and recording methods. Its options, defaults, other members and looks can change. So can the shader-side of shading and lighting. A lit module of your own therefore one kit minor.
  • A module whose card says unstable can change in any way, as can @typegpu/kit/geometry and @typegpu/kit/debug.

Generated WGSL, the exact commands a frame records and how a picture looks can change in any release.

The kit ships a guide for coding agents, the skill skills/typegpu-kit/SKILL.md. It lists the kit’s rules, such as recording a frame into the frame’s encoder, splitting uniforms by when they change, and @typegpu/noise. It links to these pages as Markdown in the package’s docs/, along with every module’s contract and the examples’ source. The site serves each page as Markdown too, at its address with .md for the trailing slash, and lists them in llms.txt at the site’s root. The Markdown pages and llms.txt name the kit version they describe. Both send an agent working in a project with the kit installed to the package’s docs/.

TypeGPU ships its own skill for TypeGPU itself, skills/typegpu/SKILL.md in the typegpu package. Each skill matches the installed version of its package.

The skill, docs/index.md and docs/modules.md keep their paths in the package, and the package’s exports list them. In a project with the kit installed, import.meta.resolve('@typegpu/kit/docs/index.md') finds the index.

  • TanStack Intent points the project’s agent config at the skills its packages ship, so it finds both. Run it once:

    npx @tanstack/intent@latest install
  • Or point to both skills from the project’s AGENTS.md:

    AGENTS.md
    Read node_modules/@typegpu/kit/skills/typegpu-kit/SKILL.md and node_modules/typegpu/skills/typegpu/SKILL.md before writing GPU code.
moduleA module is one piece of GPU work, made by a factory that borrows your root and returns resources, shader functions and methods that record into your frame.A module borrows →
frameA frame is one turn of the loop, and the object your function gets for it, which holds the encoder, the time and the time since the last frame.You own the frame →
hostA host runs a scene for you, which means it makes the device, the surface and the frame loop and frees them in order.Hosting scenes →
sceneA scene is the function a scene file exports, which creates its modules and returns the function that records each frame.Hosting scenes →
factoryA factory is the function that creates a module, which allocates what the module needs and returns its resources, functions and recording methods.A module borrows →
atlasAn atlas is one texture that holds many small pictures side by side, such as every glyph of a font or every view of a model.Words →
memberA member is a function or accessor on what a factory returns that reads that instance's own resources, so a pipeline that uses it needs no fill.Members and placeholders →
workletA worklet is a function that react-native-worklets can run on a thread other than the main JavaScript thread.Words →
runtimeA runtime is one JavaScript thread with its own memory, such as the page, a worker or a React Native worklet thread.Words →
drawingA drawing is what a renderer hands to a pass description: what each vertex carries to its pixels, what a pixel looks like and the draw call.Every renderer is a drawing →
pass descriptionA pass description says once which textures a pass draws into and what each holds, and builds the pipeline for every drawing added to it.Scenes and passes →
recorderThe recorder is the function you give the frame loop, which records one frame into the encoder it is handed.Words →
hookA hook is a placeholder that each pipeline fills with its own choice, such as the camera it draws through.Members and placeholders →
targetA target is a texture that a frame draws into.Scenes and passes →
fixed stepA fixed step advances a simulation by one set length of time, and each frame runs a whole number of them, so the result is the same at any frame rate.A fixed step →