Provides a generator to embed compiled HLSL bytecode within C# code.
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
Nov 15, 2025
$ dotnet add package IndirectX.HlslCodeGeneratorDirectX managed wrapper for .NET
dotnet tool install IndirectX.HlslCodeGenerator
Put the hlslcompile.json file as follows:
{
"Namespace": "CSharpNamespace",
"ClassName": "CSharpClassName",
"Methods": [
{
"MethodName": "CSharpMethodName",
"ShaderName": "InputLayout|VertexShader|PixelShader|HullShader|DomainShader|ComputeShader|GeometryShader",
"SourceFile": "HlslSourceFile.hlsl",
"EntryPoint": "HlslFunctionName",
"Profile": "vs_5_0|ps_5_0|hs_5_0|ds_5_0|cs_5_0|gs_5_0"
}
]
}
and run:
dotnet indxgen
See https://github.com/mino-ri/IndirectX/tree/main/Samples .
This tool uses the Windows SDK.
Please install the Windows SDK if you haven't already.
If you installed Visual Studio, it should already be installed.