|
|
Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
|
Deterministic WGSL text emission from a donner::gpu::shader IR module.
More...
#include <string>#include "donner/gpu/shader/IrModule.h"#include "donner/gpu/shader/ShaderResult.h"Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Functions | |
| ShaderResult< std::string > | donner::gpu::shader::EmitWgsl (const IrModule &module) |
Emits deterministic WGSL text for module (design 0053 "Original emitters"). | |
Deterministic WGSL text emission from a donner::gpu::shader IR module.
| ShaderResult< std::string > donner::gpu::shader::EmitWgsl | ( | const IrModule & | module | ) |
Emits deterministic WGSL text for module (design 0053 "Original emitters").
Output properties:
Fails closed with a ShaderError (never emits invalid WGSL silently) when:
| module | Module to emit. |