Skip to content

Provides a .NET library, a tool executable and an integration of shaderc compiler into MSBuild for compiling all your GLSL/HLSL files to SPIR-V.

License

Notifications You must be signed in to change notification settings

XenoAtom/XenoAtom.ShaderCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XenoAtom.ShaderCompiler ci

This project provides:

  • A library XenoAtom.ShaderCompiler that exposes higher-level integration of shaderc to compile HLSL/GLSL shaders. NuGet
  • A tool dotnet-shaderc the equivalent of glslc that can be installed on any machine that has the .NET 8 SDK NuGet
  • A MSBuild integration via XenoAtom.ShaderCompiler.Build that allows to compile shaders to SPIR-V binary files, embed them directly in C# (via a built-in Source Generator) or generates tar/tar.gz files. NuGet

✨ Features

  • Supports most features of shaderc.
    • Support for include directories.
  • Multithreaded shader compiler.
  • dotnet-shaderc is a .NET Tool equivalent of glslc that can be installed on any machine that has the .NET 8 SDK
  • The package XenoAtom.ShaderCompiler.Build allows to integrate in your C# or any MSBuild projects the compilation of HLSL/GLSL shaders.
    • C# source generator supports embedding SPIR-V binary returned as ReadOnlySpan<byte> (Default mode for C# projects).
    • Can generate tar / tar.gz files to collect all compiled shaders.
    • Can copy SPIR-V files as-is to the output folder shipped with your library/app.
    • Incremental compiler that detects includes and dependencies to only compile relevant changes.

📖 User Guide

For more details on how to use XenoAtom.ShaderCompiler, please visit the user guide.

🪪 License

This software is released under the BSD-2-Clause license.

🤗 Author

Alexandre Mutel aka xoofx.

About

Provides a .NET library, a tool executable and an integration of shaderc compiler into MSBuild for compiling all your GLSL/HLSL files to SPIR-V.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project