Log inGet started
Package

gpu.procPack

Newest version

This package holds more than this page lists. See all of its files in its world.

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)