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. | |
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.
Output properties:
Fails closed with a ShaderError (never emits invalid WGSL silently) when:
| module | Module to emit. |