#pragma once #include #include #include namespace mbgl { namespace shaders { enum class AttributeSource : int32_t { Constant, PerVertex, Computed, }; enum class ExpressionFunction : int32_t { Constant, Linear, Exponential, }; struct Expression { /* 0 */ ExpressionFunction function; /* 4 */ }; static_assert(sizeof(Expression) == 4); struct Attribute { /* 0 */ AttributeSource source; /* 4 */ Expression expression; /* 8 */ }; static_assert(sizeof(Attribute) == 8); } // namespace shaders } // namespace mbgl