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

@@ -254,6 +254,10 @@ bool ShaderAssetBase::LoadShaderCache(ShaderCacheResult& result)
options.GenerateDebugData = true;
options.NoOptimize = true;
}
else if (CommandLine::Options.ShaderProfile)
{
options.GenerateDebugData = true;
}
auto& platformDefine = options.Macros.AddOne();
#if PLATFORM_WINDOWS
platformDefine.Name = "PLATFORM_WINDOWS";