Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
GeodeShaders.h File Reference

WGSL shader sources used by the Slug rendering pipeline. More...

#include <string_view>
#include <webgpu/webgpu_cpp.h>
Include dependency graph for GeodeShaders.h:

Namespaces

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

Functions

wgpu::ShaderModule donner::geode::createSlugFillShader (const wgpu::Device &device)
 Compile the Slug fill shader for the given device.

Detailed Description

WGSL shader sources used by the Slug rendering pipeline.

Function Documentation

◆ createSlugFillShader()

wgpu::ShaderModule donner::geode::createSlugFillShader ( const wgpu::Device & device)

Compile the Slug fill shader for the given device.

Returns
A valid shader module on success, or an empty module if compilation failed (errors go to the device's uncaptured error callback).