Files
MapLibreParticleLab/src/mbgl/shaders/mtl/location_indicator.cpp
2025-02-28 21:49:20 +00:00

26 lines
1.1 KiB
C++

#include <mbgl/shaders/mtl/location_indicator.hpp>
#include <mbgl/shaders/shader_defines.hpp>
namespace mbgl {
namespace shaders {
using LocationIndicatorShaderSource = ShaderSource<BuiltIn::LocationIndicatorShader, gfx::Backend::Type::Metal>;
const std::array<AttributeInfo, 1> LocationIndicatorShaderSource::attributes = {AttributeInfo{
locationIndicatorUBOCount + 0, gfx::AttributeDataType::Float2, idLocationIndicatorPosVertexAttribute}};
using LocationIndicatorTexturedShaderSource =
ShaderSource<BuiltIn::LocationIndicatorTexturedShader, gfx::Backend::Type::Metal>;
const std::array<AttributeInfo, 2> LocationIndicatorTexturedShaderSource::attributes = {
AttributeInfo{locationIndicatorUBOCount + 0, gfx::AttributeDataType::Float2, idLocationIndicatorPosVertexAttribute},
AttributeInfo{locationIndicatorUBOCount + 1, gfx::AttributeDataType::Float2, idLocationIndicatorTexVertexAttribute},
};
const std::array<TextureInfo, 1> LocationIndicatorTexturedShaderSource::textures = {
TextureInfo{0, idLocationIndicatorTexture},
};
} // namespace shaders
} // namespace mbgl