Files
MapLibreParticleLab/include/mbgl/shaders/layer_ubo.hpp
2023-12-07 08:21:24 -08:00

38 lines
601 B
C++

#pragma once
#include <mbgl/util/color.hpp>
#include <array>
#include <cstdint>
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