Skip to content

limits.hpp

Ludus Wiki · API overview · Browse API

File

Admission limits owned by the LUSL front end (docs/architecture/shading-language.md).
The number of files and total source bytes in one snapshot are owned by the shader compiler (shader_compiler::MAX_SOURCE_FILES and shader_compiler::MAX_SOURCE_BYTES), because LUSL sources travel in the same snapshot as the Slang sources they lower to. Exceeding a limit below produces a diagnostic and a failed result; it never truncates output.

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/limits.hpp