19 lines
682 B
C++
19 lines
682 B
C++
#include <mbgl/shaders/mtl/hillshade.hpp>
|
|
#include <mbgl/shaders/shader_defines.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace shaders {
|
|
|
|
using HillshadeShaderSource = ShaderSource<BuiltIn::HillshadeShader, gfx::Backend::Type::Metal>;
|
|
|
|
const std::array<AttributeInfo, 2> HillshadeShaderSource::attributes = {
|
|
AttributeInfo{0, gfx::AttributeDataType::Short2, hillshadeUBOCount + 0, idHillshadePosVertexAttribute},
|
|
AttributeInfo{1, gfx::AttributeDataType::Short2, hillshadeUBOCount + 0, idHillshadeTexturePosVertexAttribute},
|
|
};
|
|
const std::array<TextureInfo, 1> HillshadeShaderSource::textures = {
|
|
TextureInfo{0, idHillshadeImageTexture},
|
|
};
|
|
|
|
} // namespace shaders
|
|
} // namespace mbgl
|