Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
39 lines
824 B
C++
39 lines
824 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);
|
|
|
|
enum {
|
|
idHeatmapDrawableUBO = globalUBOCount,
|
|
idHeatmapEvaluatedPropsUBO,
|
|
idHeatmapInterpolateUBO,
|
|
heatmapUBOCount
|
|
};
|
|
|
|
} // namespace shaders
|
|
} // namespace mbgl
|