From bdf043b91391a35d5d2db81b7ba3a6773c0771b8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 21:47:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- include/mbgl/renderer/layer_tweaker.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/mbgl/renderer/layer_tweaker.hpp b/include/mbgl/renderer/layer_tweaker.hpp index 06c388c57..1f00a8b6f 100644 --- a/include/mbgl/renderer/layer_tweaker.hpp +++ b/include/mbgl/renderer/layer_tweaker.hpp @@ -41,28 +41,28 @@ using StringIdentity = std::size_t; class LayerTweaker { protected: LayerTweaker(std::string id, Immutable properties); - + public: LayerTweaker() = delete; virtual ~LayerTweaker() = default; - + const std::string& getID() const { return id; } - + #if MLN_RENDER_BACKEND_METAL /// Build the common expression inupts UBO static shaders::ExpressionInputsUBO buildExpressionUBO(double zoom, uint64_t frameCount); - + /// @brief Check whether a property name exists within the previously set collection. bool hasPropertyAsUniform(StringIdentity) const; shaders::AttributeSource getAttributeSource(StringIdentity) const; - + template shaders::AttributeSource getAttributeSource(size_t index) { using ShaderClass = shaders::ShaderSource; return getAttributeSource(ShaderClass::attributes[index].nameID); } #endif // MLN_RENDER_BACKEND_METAL - + /// @brief Set the collection of attribute names which will be provided at uniform values rather than per-vertex /// attributes. /// @details These values should not have "a_" prefixes, as produced by `readDataDrivenPaintProperties`.