DefinitionLibraries

The GLSL libraries that records call through `uses:` — rendering-revamp §RVN-3.

In the namespace construct::registry. Declared in src/libs/libconstruct/construct/registry/DefinitionLibraries.hpp.

Detailed description

A library record holds helper functions and no node. A record names the libraries it calls in `uses:`, and a library can use another. Every path that assembles a record's GLSL asks this class for the libraries' code and puts it before the records: the shader generator for the GPU, the scene graph builder for libeval, and the paths that compile one record alone. The order puts each library after the ones it uses, and each library appears once, whatever number of records use it.

Libraries are resolved through an IDefinitionSource, so a document's own definitions and the catalog's resolve the same way.

In this section