game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
ShaderCacheInfo Struct Reference

Information about a shader cache. More...

#include <shader_cache_manager.h>

Public Member Functions

std::string getFormattedSize () const
std::string getTypeName () const

Public Attributes

bool exists = false
 Whether the cache exists.
int fileCount = 0
 Number of cache files.
std::chrono::system_clock::time_point lastModified
std::string name
 Human-readable name.
std::filesystem::path path
 Path to cache directory/file.
int64_t size = 0
 Size in bytes.
ShaderCacheType type

Detailed Description

Information about a shader cache.

Definition at line 58 of file shader_cache_manager.h.

Member Function Documentation

◆ getFormattedSize()

std::string ShaderCacheInfo::getFormattedSize ( ) const

Definition at line 108 of file shader_cache_manager.cpp.

References size.

◆ getTypeName()

std::string ShaderCacheInfo::getTypeName ( ) const

Definition at line 113 of file shader_cache_manager.cpp.

References shaderCacheTypeName(), and type.

Member Data Documentation

◆ exists

bool ShaderCacheInfo::exists = false

◆ fileCount

int ShaderCacheInfo::fileCount = 0

◆ lastModified

std::chrono::system_clock::time_point ShaderCacheInfo::lastModified

◆ name

std::string ShaderCacheInfo::name

◆ path

std::filesystem::path ShaderCacheInfo::path

◆ size

int64_t ShaderCacheInfo::size = 0

◆ type


The documentation for this struct was generated from the following files: