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.
Loading...
Searching...
No Matches
donner::gpu::shader::IrModule Class Reference

An immutable, validated shader IR module. More...

#include "donner/gpu/shader/IrModule.h"

Public Member Functions

const std::vector< IrConstant > & constants () const
 Module-scope constants, in declaration order.
const std::vector< IrBinding > & bindings () const
 Resource bindings, in declaration order.
const std::vector< IrFunction > & functions () const
 Functions (including entry points), in declaration order.
std::string serialize () const
 Serializes the module to a stable, line-based text dump for golden tests and debugging.

Friends

class ModuleBuilder

Detailed Description

An immutable, validated shader IR module.

Member Function Documentation

◆ serialize()

std::string donner::gpu::shader::IrModule::serialize ( ) const

Serializes the module to a stable, line-based text dump for golden tests and debugging.

Byte-identical across runs and across semantically identical construction orderings: iteration follows declaration order and the output contains no pointers or addresses.


The documentation for this class was generated from the following file: