Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
Composite.h File Reference

feComposite parameters, operators and precompiled shader projections. More...

#include <cstdint>
#include "donner/gpu/shader/CompiledShader.h"
Include dependency graph for Composite.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::gpu::shader::programs::CompositeParams
 Uniform operator selection and arithmetic coefficients. More...

Namespaces

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

Enumerations

enum class  donner::gpu::shader::programs::CompositeOperator : uint32_t {
  Over = 0 ,
  In = 1 ,
  Out = 2 ,
  Atop = 3 ,
  Xor = 4 ,
  Lighter = 5 ,
  Arithmetic = 6
}
 Compositing operators as the shader decodes them. More...

Functions

const CompiledShaderView & donner::gpu::shader::programs::CompositeShader ()
 Returns the WGSL composite artifact for the six Porter-Duff operators and arithmetic.
const CompiledShaderView & donner::gpu::shader::programs::CompositeNativeShader ()
 Returns only the platform-native Composite projection.

Detailed Description

feComposite parameters, operators and precompiled shader projections.

Enumeration Type Documentation

◆ CompositeOperator

Compositing operators as the shader decodes them.

Enumerator
Over 

Source over destination.

In 

Source inside destination.

Out 

Source outside destination.

Atop 

Source atop destination.

Xor 

Nonoverlapping source and destination.

Lighter 

Saturating sum.

Arithmetic 

Weighted product, sum, and constant.

Function Documentation

◆ CompositeNativeShader()

const CompiledShaderView & donner::gpu::shader::programs::CompositeNativeShader ( )

Returns only the platform-native Composite projection.

Returns
Stable view into process-lifetime data.

◆ CompositeShader()

const CompiledShaderView & donner::gpu::shader::programs::CompositeShader ( )

Returns the WGSL composite artifact for the six Porter-Duff operators and arithmetic.

Returns
Stable view into process-lifetime data.