|
|
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 Metal Shading Language 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::EmitMsl (const IrModule &module) |
Emits deterministic MSL text for module (design 0053 "Original emitters"). | |
Deterministic Metal Shading Language emission from a donner::gpu::shader IR module.
| ShaderResult< std::string > donner::gpu::shader::EmitMsl | ( | const IrModule & | module | ) |
Emits deterministic MSL text for module (design 0053 "Original emitters").
Follows the same determinism discipline as EmitWgsl: declaration-order emission with dependency-ordered struct definitions, two-space indentation, LF-only lines with no trailing whitespace, shortest-round-trip float formatting (C++-legal: a .0 is added when the shortest form has no decimal point or exponent, then f), and fully parenthesized subexpressions.
Mapping highlights:
| module | Module to emit. |