implement line pattern shader for Metal (#1669)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Wei Chen
2023-09-25 10:25:52 +08:00
committed by GitHub
parent d663e6e1f4
commit 4768a85798
3 changed files with 215 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#include <mbgl/mtl/buffer_resource.hpp>
#include <Metal/MTLDevice.hpp>
#include <algorithm>
namespace mbgl {
namespace mtl {

View File

@@ -137,7 +137,7 @@ void RendererBackend::initShaders(gfx::ShaderRegistry& shaders, const ProgramPar
shaders::BuiltIn::LineShader,
shaders::BuiltIn::LineGradientShader,
// shaders::BuiltIn::LineSDFShader,
// shaders::BuiltIn::LinePatternShader,
shaders::BuiltIn::LinePatternShader,
shaders::BuiltIn::RasterShader,
shaders::BuiltIn::SymbolIconShader,
shaders::BuiltIn::SymbolSDFIconShader,