@@ -674,7 +674,7 @@ crossplatform::SamplerStateDesc::Wrapping stringToWrapping(string s)
674
674
return crossplatform::SamplerStateDesc::CLAMP;
675
675
if (is_equal (s," MIRROR" ))
676
676
return crossplatform::SamplerStateDesc::MIRROR;
677
- SIMUL_BREAK_ONCE (( string ( " Invalid string" )+s). c_str () );
677
+ SIMUL_BREAK_ONCE (" Invalid string: {} " ,s );
678
678
return crossplatform::SamplerStateDesc::WRAP;
679
679
}
680
680
@@ -686,7 +686,7 @@ crossplatform::SamplerStateDesc::Filtering stringToFilter(string s)
686
686
return crossplatform::SamplerStateDesc::LINEAR;
687
687
if (is_equal (s," ANISOTROPIC" ))
688
688
return crossplatform::SamplerStateDesc::ANISOTROPIC;
689
- SIMUL_BREAK (( string ( " Invalid string: " )+s). c_str () );
689
+ SIMUL_BREAK (" Invalid string: {} " ,s );
690
690
return crossplatform::SamplerStateDesc::POINT;
691
691
}
692
692
@@ -706,7 +706,7 @@ static crossplatform::CullFaceMode toCullFadeMode(string s)
706
706
return crossplatform::CULL_FACE_FRONTANDBACK;
707
707
else if (is_equal (s," CULL_NONE" ))
708
708
return crossplatform::CULL_FACE_NONE;
709
- SIMUL_BREAK (( string ( " Invalid string" )+s). c_str () );
709
+ SIMUL_BREAK (" Invalid string: {} " ,s );
710
710
return crossplatform::CULL_FACE_NONE;
711
711
}
712
712
@@ -730,7 +730,7 @@ static crossplatform::Topology toTopology(string s)
730
730
return crossplatform::Topology::TRIANGLELIST_ADJ;
731
731
else if (is_equal (s," TriangleStripAdjacency" ))
732
732
return crossplatform::Topology::TRIANGLESTRIP_ADJ;
733
- SIMUL_BREAK (( string ( " Invalid string" )+s). c_str () );
733
+ SIMUL_BREAK (" Invalid string: {} " ,s );
734
734
return crossplatform::Topology::UNDEFINED;
735
735
}
736
736
@@ -1015,8 +1015,7 @@ bool Effect::Load(crossplatform::RenderPlatform *r, const char *filename_utf8)
1015
1015
std::transform (binFilenameUtf8.begin (), binFilenameUtf8.end (), binFilenameUtf8.begin (), ::tolower);
1016
1016
if (!platform::core::FileLoader::GetFileLoader ()->FileExists (binFilenameUtf8.c_str ()))
1017
1017
{
1018
- string err= platform::core::QuickFormat (" Shader effect file not found: %s" ,binFilenameUtf8.c_str ());
1019
- SIMUL_BREAK_ONCE (err.c_str ());
1018
+ SIMUL_BREAK_ONCE (" Shader effect file not found: {}" ,binFilenameUtf8);
1020
1019
static bool already = false ;
1021
1020
if (!already)
1022
1021
{
@@ -1515,7 +1514,7 @@ bool Effect::Load(crossplatform::RenderPlatform *r, const char *filename_utf8)
1515
1514
platform::core::FileLoader::GetFileLoader ()->AcquireFileContents (bin_ptr, bin_num_bytes, sfxbFilenameUtf8.c_str (), true );
1516
1515
if (!bin_ptr)
1517
1516
{
1518
- SIMUL_BREAK (platform::core::QuickFormat ( " Failed to load combined shader binary: %s \n " , sfxbFilenameUtf8. c_str ()) );
1517
+ SIMUL_BREAK (" Failed to load combined shader binary: {} \n " , sfxbFilenameUtf8);
1519
1518
}
1520
1519
}
1521
1520
}
@@ -1701,7 +1700,7 @@ bool Effect::Load(crossplatform::RenderPlatform *r, const char *filename_utf8)
1701
1700
}
1702
1701
else
1703
1702
{
1704
- SIMUL_BREAK (platform::core::QuickFormat ( " Unknown shader type or command: %s \n " ,type. c_str ()) );
1703
+ SIMUL_BREAK (" Unknown shader type or command: {} \n " ,type);
1705
1704
continue ;
1706
1705
}
1707
1706
Shader *s = nullptr ;
0 commit comments