Namespace Apogee.Rendering.Shaders¶
Classes¶
The pipelines one build made. Disposing destroys them all; they go through
The pipelines a renderer builds from some shader modules, rebuilt when one of them changes (or a module it imports) without stalling the frame. A change starts a build on another thread: the shaders are
compiled through the
Slang modules into .ashader): each module with entry points is compiled to SPIR-V (Vulkan) and to Metal shading language (Metal), with its reflection, once without defines and once for each
<Variant> its .import.xml lists. The files the compiler read (import, #include) are the artifact's dependencies, so editing a library re-imports every shader
that uses it, and the library is not imported on its own. A module with no [shader(…)] entry point is not an asset: it only serves the others.
Where renderers get their shaders. shaders:// (mod://id/…, with their artifacts in mod://id/imported.
The library remembers which files each module it loaded was made from, so that when files change (HotReloader.ShadersChanged or a