Namespace ShadowDusk.Compiler
Classes
- EffectCompiler
The product's in-memory shader compiler and the default IShaderCompiler implementation: HLSL
.fxsource in,.mgfxbytes out, on Linux, macOS, or Windows with nothing but this library. Orchestrates the faithful pipeline — HLSL → DXC → SPIR-V → SPIRV-Cross → GLSL for OpenGL, and HLSL → vkd3d-shader → DXBC for DirectX — and writes the MonoGame/KNI.mgfxcontainer.
- ShaderConverter
One auto-detecting entry point per output kind, for callers that receive shaders without a trustworthy file extension. Each method detects the source language from the text (ShaderFormatDetector), routes an
.fxeffect or HLSL-compatible Slang to the same pipeline the format-specific entry points use, and returns an UnsupportedInput error (codeSD0650) without compiling anything when the input is not one of those two.