Optimize text formatting functions instantiation to favor manually called String::Format

This commit is contained in:
Wojtek Figat
2023-05-09 16:38:59 +02:00
parent a403c4d9ee
commit e03516e22e
8 changed files with 15 additions and 17 deletions

View File

@@ -410,7 +410,7 @@ bool ProcessShaderBase(CookAssetsStep::AssetCookData& data, ShaderAssetBase* ass
assetBase->InitCompilationOptions(options); \
if (ShadersCompilation::Compile(options)) \
{ \
data.Data.Error(TEXT("Failed to compile shader '{0}' (profile: {1})."), asset->ToString(), ::ToString(options.Profile)); \
data.Data.Error(String::Format(TEXT("Failed to compile shader '{0}' (profile: {1})."), asset->ToString(), ::ToString(options.Profile))); \
return true; \
} \
includes.Clear(); \