Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit2e536ca9a9

README.md

proc.raster

A tiled GPU raster: named scalar layers sharing one grid. tiles builds the grid (world to cell mapping, apron rings, face-block math), channels allocates the GPU buffers a grid's layers live in, and Raster composes the two into one procgen value tagged __proc_type = "Raster", so proc.types.typeOf and the graph type system recognise it. Raster.new(opts) builds one, and its methods (addLayer, hasLayer, layerNames, layerBuffer, readTile, readLayer, sampleGrid, copy, bytes, destroy) allocate, read back, copy, measure and release its layers; the evaluator's node cache releases, copies and sizes it through its __proc_release, __proc_copy and __proc_bytes hooks.

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