game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
shader_cache_manager.h File Reference
#include <chrono>
#include <filesystem>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for shader_cache_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CacheClearResult
 Result of a cache clearing operation. More...
struct  GameShaderCache
 Shader cache information for a specific game. More...
struct  ShaderCacheInfo
 Information about a shader cache. More...
class  ShaderCacheManager
 Service for managing shader caches. More...
struct  ShaderCacheStats
 Overall shader cache statistics. More...

Enumerations

enum class  ShaderCacheType {
  Mesa , NVIDIA , DXVK , VKD3D ,
  SteamShader , Fossilize , WineState , All
}
 Types of shader caches. More...

Functions

std::string shaderCacheTypeName (ShaderCacheType type)
 Get human-readable cache type name.

Enumeration Type Documentation

◆ ShaderCacheType

enum class ShaderCacheType
strong

Types of shader caches.

Enumerator
Mesa 

Mesa (AMD/Intel) GLCache and shader_cache.

NVIDIA 

NVIDIA proprietary driver cache.

DXVK 

DXVK Vulkan-based D3D implementation.

VKD3D 

VKD3D-Proton D3D12 implementation.

SteamShader 

Steam's shader pre-caching.

Fossilize 

Fossilize pipeline cache.

WineState 

Wine/Proton state cache.

All 

All cache types.

Definition at line 42 of file shader_cache_manager.h.

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().