Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite09f1e4457

README.md

proc.gpu

GPU-scale field evaluation. proc.gpu.eval(op, opts) runs a kernel op (a .computeShader declared through proc.kernel.defineKernelOp: scale, noise) over a whole field in one dispatch and answers a GPU-backed Field whose values match the CPU evaluation; it yields while the dispatch runs. opts.input is a CPU Field<T>, a GPU-backed Field (used in place) or a flat strided array, opts.count the element count, and the op's scalar params go by name (proc.gpu.eval("scale", { input = f, count = 4096, scale = 2.0 })). defs() is the family, keyed gpu.<name>, which procPacks/gpu.procPack registers; ops() names the ops.

Part of @builtin::systems.procgen.proc; reached as proc.gpu.