mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-06 19:01:21 +03:00
extern/shiny update: made caching more robust
This commit is contained in:
parent
bf037b7d29
commit
a7d910614f
5 changed files with 40 additions and 27 deletions
7
extern/shiny/Main/ShaderSet.hpp
vendored
7
extern/shiny/Main/ShaderSet.hpp
vendored
|
@ -30,9 +30,6 @@ namespace sh
|
|||
/// so it does not matter if you pass any extra properties that the shader does not care about.
|
||||
ShaderInstance* getInstance (PropertySetGet* properties);
|
||||
|
||||
void markDirty() { mIsDirty = true; }
|
||||
///< Signals that the cache is out of date, and thus should not be used this time
|
||||
|
||||
private:
|
||||
PropertySetGet* getCurrentGlobalSettings() const;
|
||||
std::string getBasePath() const;
|
||||
|
@ -41,12 +38,8 @@ namespace sh
|
|||
std::string getHlslProfile() const;
|
||||
int getType() const;
|
||||
|
||||
bool isDirty() { return mIsDirty; }
|
||||
|
||||
friend class ShaderInstance;
|
||||
|
||||
bool mIsDirty;
|
||||
|
||||
private:
|
||||
GpuProgramType mType;
|
||||
std::string mSource;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue