Files
MapLibreParticleLab/include/mbgl/shaders/heatmap_texture_layer_ubo.hpp
Alex Cristici d22362ab22 Global UBO (#2292)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-24 17:14:18 +03:00

22 lines
408 B
C++

#pragma once
#include <mbgl/shaders/layer_ubo.hpp>
namespace mbgl {
namespace shaders {
struct alignas(16) HeatmapTexturePropsUBO {
std::array<float, 4 * 4> matrix;
float opacity;
float pad1, pad2, pad3;
};
static_assert(sizeof(HeatmapTexturePropsUBO) % 16 == 0);
enum {
idHeatmapTexturePropsUBO = globalUBOCount,
heatmapTextureUBOCount
};
} // namespace shaders
} // namespace mbgl