Files
MapLibreParticleLab/include/mln/shaders/hillshade_prepare_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

25 lines
575 B
C++

#pragma once
#include <mln/shaders/layer_ubo.hpp>
namespace mln {
namespace shaders {
struct alignas(16) HillshadePrepareDrawableUBO {
/* 0 */ std::array<float, 4 * 4> matrix;
/* 64 */
};
static_assert(sizeof(HillshadePrepareDrawableUBO) == 4 * 16);
struct alignas(16) HillshadePrepareTilePropsUBO {
/* 0 */ std::array<float, 4> unpack;
/* 16 */ std::array<float, 2> dimension;
/* 24 */ float zoom;
/* 28 */ float maxzoom;
/* 32 */
};
static_assert(sizeof(HillshadePrepareTilePropsUBO) == 2 * 16);
} // namespace shaders
} // namespace mln