Nameless Engine
Loading...
Searching...
No Matches
ne::ShaderFilesystemPaths Class Reference

#include <ShaderFilesystemPaths.hpp>

Public Member Functions

 ShaderFilesystemPaths (const ShaderFilesystemPaths &)=delete
 
ShaderFilesystemPathsoperator= (const ShaderFilesystemPaths &)=delete
 

Static Public Member Functions

static std::filesystem::path getPathToShaderCacheDirectory ()
 
static std::string getShaderCacheBaseFileName ()
 

Static Private Attributes

static constexpr auto sShaderCacheBaseFileName = "shader"
 

Detailed Description

Provides a set of static functions related to the filesystem paths to store shaders.

Member Function Documentation

◆ getPathToShaderCacheDirectory()

static std::filesystem::path ne::ShaderFilesystemPaths::getPathToShaderCacheDirectory ( )
inlinestatic

Returns path to the directory used to store shader cache, for example: ".../nameless-engine/<project_name>/shader_cache/".

Returns
Path to shader cache directory (created if not existed before).

◆ getShaderCacheBaseFileName()

static std::string ne::ShaderFilesystemPaths::getShaderCacheBaseFileName ( )
inlinestatic

Returns base file name used in shader cache. This name is used within a shader specific directory (like ".../shader_cache/engine.default"), to name different files using different extensions (like "shader", "shader.pdb", "shader.reflection" and etc.).

Returns
Base file name.

Member Data Documentation

◆ sShaderCacheBaseFileName

constexpr auto ne::ShaderFilesystemPaths::sShaderCacheBaseFileName = "shader"
inlinestaticconstexprprivate

Base name of the file used to store shader cache.


The documentation for this class was generated from the following file: