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

Typed channel-driven displacement with transparent-border bilinear sampling. More...

Include dependency graph for DisplacementMap.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::BuildDisplacementMapModule ()
 Builds a displacement compute program.

Detailed Description

Typed channel-driven displacement with transparent-border bilinear sampling.

Function Documentation

◆ BuildDisplacementMapModule()

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

Builds a displacement compute program.

Inputs and output have matching extents. The map is premultiplied RGBA; RGB selectors recover straight color while the alpha selector reads alpha directly. Source samples beyond the input bounds are transparent.