game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
shader_cache_manager.cpp File Reference
#include "services/shader_cache_manager.h"
#include "logger.h"
#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <mutex>
Include dependency graph for shader_cache_manager.cpp:

Go to the source code of this file.

Classes

struct  ShaderCacheManager::Impl

Namespaces

namespace  anonymous_namespace{shader_cache_manager.cpp}

Functions

bool anonymous_namespace{shader_cache_manager.cpp}::createDirectories (const std::filesystem::path &path)
bool anonymous_namespace{shader_cache_manager.cpp}::fileExists (const std::filesystem::path &path)
std::string anonymous_namespace{shader_cache_manager.cpp}::formatBytes (int64_t bytes)
std::filesystem::path anonymous_namespace{shader_cache_manager.cpp}::getHomeDir ()
std::chrono::system_clock::time_point anonymous_namespace{shader_cache_manager.cpp}::getModTime (const std::filesystem::path &path)
std::filesystem::path anonymous_namespace{shader_cache_manager.cpp}::getXDGCacheHome ()
std::filesystem::path anonymous_namespace{shader_cache_manager.cpp}::getXDGDataHome ()
bool anonymous_namespace{shader_cache_manager.cpp}::isDirectory (const std::filesystem::path &path)
std::string shaderCacheTypeName (ShaderCacheType type)
 Get human-readable cache type name.

Function Documentation

◆ shaderCacheTypeName()

std::string shaderCacheTypeName ( ShaderCacheType type)

Get human-readable cache type name.

Definition at line 149 of file shader_cache_manager.cpp.

References All, DXVK, Fossilize, Mesa, NVIDIA, SteamShader, VKD3D, and WineState.

Referenced by ShaderCacheManager::getCacheInfo(), and ShaderCacheInfo::getTypeName().