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

Shared gradient host layout and selected frozen shader projections. More...

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

Classes

struct  donner::gpu::shader::programs::SlugGradientParams
 Host uniform layout for dedicated Slug gradients. More...
struct  donner::gpu::shader::programs::SlugGradientBand
 Host element of either gradient band array. More...

Namespaces

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

Functions

const CompiledShaderView & donner::gpu::shader::programs::SlugGradientShader ()
 Returns the WGSL gradient artifact.
const CompiledShaderView & donner::gpu::shader::programs::SlugGradientNativeShader ()
 Returns the platform-native gradient artifact.

Variables

constexpr uint32_t donner::gpu::shader::programs::kSlugGradientMaxStops = 16
 Maximum admitted gradient stops.

Detailed Description

Shared gradient host layout and selected frozen shader projections.

Function Documentation

◆ SlugGradientNativeShader()

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

Returns the platform-native gradient artifact.

Returns
Stable view into process-lifetime data.

◆ SlugGradientShader()

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

Returns the WGSL gradient artifact.

Returns
Stable view into process-lifetime data.