Device pixel ratio send as define instead of UBO field (#1936)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Cristici
2023-12-09 07:48:57 +02:00
committed by GitHub
parent 1c2faae52e
commit ea73a57a09
44 changed files with 114 additions and 107 deletions

View File

@@ -62,9 +62,11 @@ public:
const std::string& fragmentSource(gfx::Backend::Type backend) const;
bool getOverdrawInspectorEnabled() const { return overdrawInspector; }
std::uint64_t getDefinesHash() const { return definesHash; }
private:
std::unordered_map<std::string, std::string> defines;
std::uint64_t definesHash;
// cached value of `defines` converted to string format
mutable std::string definesStr;