XenoAtom.ShaderCompiler
1.1.0
Prefix Reserved
dotnet add package XenoAtom.ShaderCompiler --version 1.1.0
NuGet\Install-Package XenoAtom.ShaderCompiler -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XenoAtom.ShaderCompiler" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XenoAtom.ShaderCompiler --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: XenoAtom.ShaderCompiler, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install XenoAtom.ShaderCompiler as a Cake Addin #addin nuget:?package=XenoAtom.ShaderCompiler&version=1.1.0 // Install XenoAtom.ShaderCompiler as a Cake Tool #tool nuget:?package=XenoAtom.ShaderCompiler&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
XenoAtom.ShaderCompiler
<img align="right" width="160px" height="160px" src="https://raw.githubusercontent.com/XenoAtom/XenoAtom.ShaderCompiler/main/img/XenoAtom.ShaderCompiler.png">
This project provides:
- A library
XenoAtom.ShaderCompiler
that exposes higher-level integration of shaderc to compile HLSL/GLSL shaders. - A tool
dotnet-shaderc
the equivalent ofglslc
that can be installed on any machine that has the .NET 8 SDK - 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 generatestar
/tar.gz
files.
✨ Features
- Supports most features of shaderc.
- Support for include directories.
- Multithreaded shader compiler.
dotnet-shaderc
is a .NET Tool equivalent ofglslc
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.
- C# source generator supports embedding SPIR-V binary returned as
📖 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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Silk.NET.Shaderc.Native (>= 2.21.0)
- System.IO.Hashing (>= 8.0.0)
- XenoAtom.Interop.libshaderc (>= 1.0.0-alpha.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.