API ReferenceSandbox.Engine.Shaders
ShaderCompileOptionsclass
Options used when compiling a shader
object→ShaderCompileOptions
Properties5
Showing 5 properties
public bool Sandbox.Engine.Shaders.ShaderCompileOptions.ConsoleOutput { get; set; }
Write to console. Used when running from the command line.
Returns:
bool—public bool Sandbox.Engine.Shaders.ShaderCompileOptions.ForceRecompile { get; set; }
Returns:
bool—public int Sandbox.Engine.Shaders.ShaderCompileOptions.MaxThreads { get; set; }
Most combos to compile at once. 0 picks from the core count and free memory.
Returns:
int—public bool Sandbox.Engine.Shaders.ShaderCompileOptions.SingleThreaded { get; set; }
Returns:
bool—public string Sandbox.Engine.Shaders.ShaderCompileOptions.SpirvDumpPath { get; set; }
Write each combo's SPIR-V under this folder instead of writing the `.shader_c`, for offline analysis (`SboxBuild shader-stats`). Up to date shaders are compiled anyway. See `Sandbox.Engine.Shaders.SpirvDump`.
Returns:
string—No results match this filter.