Minetest  5.4.0
SourceShaderCache Class Reference
+ Collaboration diagram for SourceShaderCache:

Public Member Functions

void insert (const std::string &name_of_shader, const std::string &filename, const std::string &program, bool prefer_local)
 
std::string get (const std::string &name_of_shader, const std::string &filename)
 
std::string getOrLoad (const std::string &name_of_shader, const std::string &filename)
 

Private Member Functions

std::string readFile (const std::string &path)
 

Private Attributes

StringMap m_programs
 

Member Function Documentation

◆ get()

std::string SourceShaderCache::get ( const std::string &  name_of_shader,
const std::string &  filename 
)
inline

References DIR_DELIM, and m_programs.

◆ getOrLoad()

std::string SourceShaderCache::getOrLoad ( const std::string &  name_of_shader,
const std::string &  filename 
)
inline

References DIR_DELIM, getShaderPath(), infostream, m_programs, p(), and readFile().

Referenced by ShaderSource::generateShader().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insert()

void SourceShaderCache::insert ( const std::string &  name_of_shader,
const std::string &  filename,
const std::string &  program,
bool  prefer_local 
)
inline

References DIR_DELIM, getShaderPath(), m_programs, p(), and readFile().

Referenced by ShaderSource::insertSourceShader().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readFile()

std::string SourceShaderCache::readFile ( const std::string &  path)
inlineprivate

Referenced by getOrLoad(), and insert().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_programs

StringMap SourceShaderCache::m_programs
private

Referenced by get(), getOrLoad(), and insert().


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