Files
MapLibreParticleLab/include/mln/shaders/heatmap_layer_ubo.hpp
Bart Louwers 2a8ebc4906 core: rename mbgl directories to mln (#4511)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-08-22 20:50:14 +02:00

32 lines
713 B
C++

#pragma once
#include <mln/shaders/layer_ubo.hpp>
namespace mln {
namespace shaders {
struct alignas(16) HeatmapDrawableUBO {
/* 0 */ std::array<float, 4 * 4> matrix;
/* 64 */ float extrude_scale;
// Interpolations
/* 68 */ float weight_t;
/* 72 */ float radius_t;
/* 76 */ float pad1;
/* 80 */
};
static_assert(sizeof(HeatmapDrawableUBO) == 5 * 16);
/// Evaluated properties that do not depend on the tile
struct alignas(16) HeatmapEvaluatedPropsUBO {
/* 0 */ float weight;
/* 4 */ float radius;
/* 8 */ float intensity;
/* 12 */ float padding;
/* 16 */
};
static_assert(sizeof(HeatmapEvaluatedPropsUBO) == 16);
} // namespace shaders
} // namespace mln