API ReferenceSandbox.Engine.Shaders

ShaderCompileOptionsclass

Options used when compiling a shader

object→ShaderCompileOptions
Namespace
Sandbox.Engine.Shaders
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Engine.Shaders.ShaderCompileOptions

Properties5

Showing 5 properties

public bool Sandbox.Engine.Shaders.ShaderCompileOptions.ConsoleOutput { get; set; }PUBLICGETSET

Write to console. Used when running from the command line.

Returns:bool—

public bool Sandbox.Engine.Shaders.ShaderCompileOptions.ForceRecompile { get; set; }PUBLICGETSET

Returns:bool—

public int Sandbox.Engine.Shaders.ShaderCompileOptions.MaxThreads { get; set; }PUBLICGETSET

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; }PUBLICGETSET

Returns:bool—

public string Sandbox.Engine.Shaders.ShaderCompileOptions.SpirvDumpPath { get; set; }PUBLICGETSET

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—

On this page