Class ShaderCompilerOptions
- Namespace
- BSGameLib.Game.ShaderCompiler
- Assembly
- BSGameLib.Game.ShaderCompiler.dll
Settings for the runtime shader compiler AddShaderCompiler(IServiceCollection, Action<ShaderCompilerOptions>) registers.
public sealed class ShaderCompilerOptions
- Inheritance
-
ShaderCompilerOptions
- Inherited Members
Properties
CacheDirectory
Where the disk cache lives. Defaults to BSGameLib/ShaderCache under the user's local
application data. Entries are named by a hash of the shader and the compiler, so games can
share one.
public string CacheDirectory { get; set; }
Property Value
UseDiskCache
Whether compiled SPIR-V is kept on disk, so the next launch does not compile the same shaders again. On by default.
public bool UseDiskCache { get; set; }