Files
MapLibreParticleLab/include/mbgl/shaders/shader_source.hpp
Alex Cristici 6aa804f7e2 Optimize fill extrusion memory by using instancing [Core optimization] (#4256)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
Co-authored-by: Adrian Cojocaru <adrian.cojocaru92@yahoo.com>
2026-05-05 18:24:17 +02:00

67 lines
1.8 KiB
C++

// Generated code, do not modify this file!
#pragma once
#include <mbgl/gfx/backend.hpp>
namespace mbgl {
namespace shaders {
/// @brief This enum is used with the ShaderSource template to select
/// source code for the desired program and graphics back-end.
enum class BuiltIn {
None,
Prelude,
ClippingMaskProgram,
BackgroundShader,
BackgroundPatternShader,
CircleShader,
CollisionBoxShader,
CollisionCircleShader,
CustomGeometryShader,
CustomSymbolIconShader,
DebugShader,
FillShader,
FillOutlineShader,
FillPatternShader,
FillOutlinePatternShader,
FillOutlineTriangulatedShader,
FillExtrusionShader,
FillExtrusionInstancedShader,
FillExtrusionPatternShader,
FillExtrusionPatternInstancedShader,
HeatmapShader,
HeatmapTextureShader,
HillshadePrepareShader,
ColorReliefShader,
HillshadeShader,
LineShader,
LineGradientShader,
LinePatternShader,
LocationIndicatorShader,
LocationIndicatorTexturedShader,
LineSDFShader,
RasterShader,
SymbolIconShader,
SymbolSDFShader,
SymbolTextAndIconShader,
WideVectorShader
};
/// @brief Select shader source based on a program type and a desired
/// graphics API.
/// @tparam T One of the built-in shader types available in the BuiltIn enum
/// @tparam The desired graphics API to request shader code for. One of
/// gfx::Backend::Type enums.
template <BuiltIn T, gfx::Backend::Type>
struct ShaderSource;
/// @brief A specialization of the ShaderSource template for no shader code.
template <>
struct ShaderSource<BuiltIn::None, gfx::Backend::Type::OpenGL> {
static constexpr const char* name = "";
static constexpr const char* vertex = "";
static constexpr const char* fragment = "";
};
} // namespace shaders
} // namespace mbgl