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
paddingFor :: Offset -> Int- Modules
- Puregrain
- Puregrain.
Cells - Puregrain.
Dither - Puregrain.
Gamma - Puregrain.
Internal. Exact - Puregrain.
Internal. Fifo - Puregrain.
Internal. Gamma - Puregrain.
Internal. Image - Puregrain.
Internal. Kernel - Puregrain.
Internal. Quantize - Puregrain.
Internal. Row - Puregrain.
Internal. SelfCheck - Puregrain.
Internal. State - Puregrain.
Internal. Step - Puregrain.
Internal. Util - Puregrain.
Kernel - Puregrain.
Machine. C64 - Puregrain.
Machine. ZxSpectrum - Puregrain.
Ordered - Puregrain.
Palette - Puregrain.
Palette. Presets - Puregrain.
Pixel - Puregrain.
Quantize - Puregrain.
SelfCheck