Common: Drop String, add SmallString
This commit is contained in:
@ -265,7 +265,7 @@ void GPUDevice::OpenShaderCache(const std::string_view& base_path, u32 version)
|
||||
if (m_features.pipeline_cache)
|
||||
{
|
||||
const std::string pc_filename =
|
||||
Path::Combine(base_path, TinyString::FromFmt("{}.bin", GetShaderCacheBaseName("pipelines")));
|
||||
Path::Combine(base_path, TinyString::from_fmt("{}.bin", GetShaderCacheBaseName("pipelines")));
|
||||
if (FileSystem::FileExists(pc_filename.c_str()))
|
||||
{
|
||||
Log_InfoPrintf("Removing old pipeline cache '%s'", pc_filename.c_str());
|
||||
@ -284,7 +284,7 @@ void GPUDevice::OpenShaderCache(const std::string_view& base_path, u32 version)
|
||||
if (m_features.pipeline_cache && !base_path.empty())
|
||||
{
|
||||
const std::string basename = GetShaderCacheBaseName("pipelines");
|
||||
const std::string filename = Path::Combine(base_path, TinyString::FromFmt("{}.bin", basename));
|
||||
const std::string filename = Path::Combine(base_path, TinyString::from_fmt("{}.bin", basename));
|
||||
if (ReadPipelineCache(filename))
|
||||
s_pipeline_cache_path = std::move(filename);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user