Table of Contents

Namespace ShadowDusk.Compiler

Classes

EffectCompiler

The product's in-memory shader compiler and the default IShaderCompiler implementation: HLSL .fx source in, .mgfx bytes 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 .mgfx container.

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 .fx effect or HLSL-compatible Slang to the same pipeline the format-specific entry points use, and returns an UnsupportedInput error (code SD0650) without compiling anything when the input is not one of those two.