BSGameLib.Game.ShaderCompiler
1.0.4-preview
dotnet add package BSGameLib.Game.ShaderCompiler --version 1.0.4-preview
NuGet\Install-Package BSGameLib.Game.ShaderCompiler -Version 1.0.4-preview
<PackageReference Include="BSGameLib.Game.ShaderCompiler" Version="1.0.4-preview" />
<PackageVersion Include="BSGameLib.Game.ShaderCompiler" Version="1.0.4-preview" />
<PackageReference Include="BSGameLib.Game.ShaderCompiler" />
paket add BSGameLib.Game.ShaderCompiler --version 1.0.4-preview
#r "nuget: BSGameLib.Game.ShaderCompiler, 1.0.4-preview"
#:package BSGameLib.Game.ShaderCompiler@1.0.4-preview
#addin nuget:?package=BSGameLib.Game.ShaderCompiler&version=1.0.4-preview&prerelease
#tool nuget:?package=BSGameLib.Game.ShaderCompiler&version=1.0.4-preview&prerelease
BSGameLib.Game.ShaderCompiler
Compiles GLSL to SPIR-V at runtime for BSGameLib.Game's Vulkan renderer, for shaders the build
never saw: read from a file, downloaded, or generated while the game runs. Compiled shaders are
cached on disk.
Most games don't need it: BSGameLib.Game compiles a game's shaders at build. It is a separate
package because shaderc's native library adds several megabytes per platform. Without it, a shader
with no precompiled SPIR-V is reported once: sprites and shapes that use it are drawn without its
shader, and a full-screen effect that uses it throws.
using BSGameLib.Game;
using BSGameLib.Game.ShaderCompiler;
using Microsoft.Extensions.DependencyInjection;
public class MyGame : Game
{
protected override void Configure(IServiceCollection services) =>
services.AddShaderCompiler(options => options.CacheDirectory = "shader-cache");
}
The cache is on by default, in BSGameLib/ShaderCache under the local application data folder,
shared between games.
Documentation: https://docs.burningstormstudios.com/
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BSGameLib.Game (>= 1.0.11-preview)
- Silk.NET.Shaderc (>= 2.23.0)
- Silk.NET.Shaderc.Native (>= 2.23.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.4-preview | 48 | 11/9/2026 |