Module

Puregrain.Internal.Kernel

Package
purescript-puregrain
Repository
roman-mkh/puregrain

The compiled form of a kernel, built once per image so the per-pixel step doesn't filter the kernel again for every pixel (PureScript shares nothing automatically). Internal: may change without notice.

#CompiledKernel Source

type CompiledKernel = { currentOffsets :: Array Offset, futureLayers :: Array (Array Offset), maxDepth :: Int }

Precomputed per kernel: the offsets in the current row, the offsets of each later row grouped by dy (layer i holds those with dy == i + 1), and the deepest dy. Built once by compileKernel, then passed on as plain data through the row and step code.

#paddingFor Source

#skipFor Source