Class ShaderCompilerServiceCollectionExtensions
- Namespace
- BSGameLib.Game.ShaderCompiler
- Assembly
- BSGameLib.Game.ShaderCompiler.dll
Adds the runtime shader compiler to a game's services.
public static class ShaderCompilerServiceCollectionExtensions
- Inheritance
-
ShaderCompilerServiceCollectionExtensions
- Inherited Members
Methods
AddShaderCompiler(IServiceCollection, Action<ShaderCompilerOptions>)
Lets the Vulkan backend compile shaders that were not precompiled at build - ones read from a file, downloaded, or written while the game runs. Precompiled SPIR-V is still used first.
public static IServiceCollection AddShaderCompiler(this IServiceCollection services, Action<ShaderCompilerOptions> configure = null)
Parameters
servicesIServiceCollectionconfigureAction<ShaderCompilerOptions>