Uniform buffer objects (#1127)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Cristici
2023-05-11 20:33:58 +03:00
committed by Bart Louwers
parent bbb8bf3c1e
commit d8ea91de98
34 changed files with 634 additions and 163 deletions

View File

@@ -180,8 +180,9 @@ protected:
std::mutex mutex;
gfx::ShaderProgramBasePtr shader;
std::unordered_map<OverscaledTileID, gfx::DrawablePtr> tileDrawables;
std::optional<Color> lastColor;
int32_t lastLayerIndex = -1;
bool evaluatedPropertiesChange = false;
gfx::UniformBufferPtr uniformBuffer = nullptr;
struct Stats {
size_t propertyEvaluations = 0;