Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
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: