s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
ShaderCompileOptions
chevron_left
Classes
struct
ShaderCompileOptions
Properties
data_object
ConsoleOutput
data_object
ForceRecompile
data_object
MaxThreads
data_object
SingleThreaded
data_object
SpirvDumpPath
ShaderCompileOptions
Options used when compiling a shader
struct
Sandbox.Engine.Shaders
.
sealed
Sandbox.Engine
data_object
Properties
5
ConsoleOutput
bool
Write to console. Used when running from the command line.
ForceRecompile
bool
MaxThreads
int
Most combos to compile at once. 0 picks from the core count and free memory.
SingleThreaded
bool
SpirvDumpPath
string
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.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.