Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
Morphology.h File Reference

SVG morphology compute program expressed in the shader IR. More...

Include dependency graph for Morphology.h:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

ShaderResult< IrModule > donner::gpu::shader::programs::BuildMorphologyModule ()
 Computes component-wise erosion or dilation with transparent pixels outside the source.

Detailed Description

SVG morphology compute program expressed in the shader IR.

Function Documentation

◆ BuildMorphologyModule()

ShaderResult< IrModule > donner::gpu::shader::programs::BuildMorphologyModule ( )

Computes component-wise erosion or dilation with transparent pixels outside the source.

Hosts pass nonnegative radii no greater than 31 per axis and operation 0 (erode) or 1 (dilate). Zero radii copy the source. Larger kernels are decomposed by the host into bounded passes. Source and destination have equal extents; excess destination invocations return without writing.