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

Typed drop-shadow offset, flood, and source-over composition. More...

Include dependency graph for DropShadow.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::BuildDropShadowModule ()
 Composes an offset blurred alpha below the original source using a straight-alpha flood color.

Detailed Description

Typed drop-shadow offset, flood, and source-over composition.

Function Documentation

◆ BuildDropShadowModule()

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

Composes an offset blurred alpha below the original source using a straight-alpha flood color.

Offsets are finite pixels in [-4096,4096], rounded half away from zero like the software path. The original source and output extents match. Samples outside the blurred source are transparent.