Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit2e536ca9a9

README.md

proc.kernel

A compute dispatch declared as a procgen op. defineKernelOp(spec) turns a .computeShader identity, a param-packing function and an optional work set into an ordinary op def, the kind proc.register_op and proc.registerPack take. The op's first declared input picks the dispatch shape: a Field input dispatches element-wise (the shader's first buffer is what a run reads, its second what it writes, sized by params.count), and a Raster input dispatches per tile over the raster layer spec.layer names, with the numbers pack(op, grid, tile) answers as its parameter buffer and workset(op, raster) naming the tiles it touches. paramsBuffer, sharedZeroMask, sharedNoMaskCommon and sharedZeroPayload are the shared buffers such a dispatch binds.

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