Add shaders profiling console command

This commit is contained in:
Wojtek Figat
2024-07-03 13:22:19 +02:00
parent 030a66c091
commit b3d77ab9eb
4 changed files with 14 additions and 0 deletions

View File

@@ -156,6 +156,7 @@ bool CommandLine::Parse(const Char* cmdLine)
PARSE_ARG_SWITCH("-build ", Build);
PARSE_BOOL_SWITCH("-skipcompile ", SkipCompile);
PARSE_BOOL_SWITCH("-shaderdebug ", ShaderDebug);
PARSE_BOOL_SWITCH("-shaderprofile ", ShaderProfile);
PARSE_ARG_OPT_SWITCH("-play ", Play);
#endif

View File

@@ -169,6 +169,11 @@ public:
/// </summary>
Nullable<bool> ShaderDebug;
/// <summary>
/// -shaderprofile (enables debugging data generation for shaders but leaves shader compiler optimizations active for performance profiling)
/// </summary>
Nullable<bool> ShaderProfile;
/// <summary>
/// -play !guid! ( Scene to play, can be empty to use default )
/// </summary>