32 lines
689 B
C++
32 lines
689 B
C++
#pragma once
|
|
|
|
#include <mbgl/shaders/layer_ubo.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace shaders {
|
|
|
|
struct alignas(16) HeatmapDrawableUBO {
|
|
std::array<float, 4 * 4> matrix;
|
|
float extrude_scale;
|
|
std::array<float, 3> padding;
|
|
};
|
|
static_assert(sizeof(HeatmapDrawableUBO) % 16 == 0);
|
|
|
|
struct alignas(16) HeatmapEvaluatedPropsUBO {
|
|
float weight;
|
|
float radius;
|
|
float intensity;
|
|
float padding;
|
|
};
|
|
static_assert(sizeof(HeatmapEvaluatedPropsUBO) % 16 == 0);
|
|
|
|
struct alignas(16) HeatmapInterpolateUBO {
|
|
float weight_t;
|
|
float radius_t;
|
|
std::array<float, 2> padding;
|
|
};
|
|
static_assert(sizeof(HeatmapInterpolateUBO) % 16 == 0);
|
|
|
|
} // namespace shaders
|
|
} // namespace mbgl
|