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

SVG Gaussian blur compute program expressed in the shader IR. More...

Include dependency graph for GaussianBlur.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::BuildGaussianBlurModule ()
 Runs one Gaussian or box-blur pass with transparent, duplicate, or wrap sampling.

Detailed Description

SVG Gaussian blur compute program expressed in the shader IR.

Function Documentation

◆ BuildGaussianBlurModule()

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

Runs one Gaussian or box-blur pass with transparent, duplicate, or wrap sampling.

The host bounds finite sigma to [0,256] and each box extent to [0,240] through filter admission, and supplies equally sized source/destination textures. Gaussian support is capped at 127 pixels. The optional output clip is applied after sampling, before the shared [0,1] output clamp.