Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

gpu

Field ops evaluated on the GPU: one dispatch over a whole field, matching the CPU result.

The definitions live in proc.gpu; this pack is what puts them in the op registry, so procgen.searchNodes("", { pack = "gpu" }) lists the family and procgen.describeNode("op.<id>") describes either of them. proc.gpu.eval is a convenience wrapper over the same registered ops.

Ops

  • gpu.scale — Element-wise scalar multiply: dst[i] = src[i] * scale
  • gpu.noise — 2D value noise: dst[i] = value2(seed, coords[i] * freq)