Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Alex Cristici <alex.cristici@gmail.com> Co-authored-by: mwilsnd <mwilsnd@gmail.com> Co-authored-by: Stefan Karschti <stefan.karschti@gmail.com> Co-authored-by: Bart Louwers <bart@emeel.net> Co-authored-by: Alex Cristici <alex@skoon.energy> Co-authored-by: Bart Louwers <bart.louwers@gmail.com> Co-authored-by: Wei Chen <alanchenboy@gmail.com> Co-authored-by: Siarhei Fedartsou <siarhei.fedartsou@gmail.com> Co-authored-by: tdcosta100 <tdcosta100@gmail.com>
21 lines
686 B
C++
21 lines
686 B
C++
#pragma once
|
|
|
|
#include <mbgl/shaders/mtl/background.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace shaders {
|
|
|
|
template <>
|
|
struct ShaderSource<BuiltIn::BackgroundPatternShader, gfx::Backend::Type::Metal>
|
|
: public ShaderSource<BuiltIn::BackgroundShader, gfx::Backend::Type::Metal> {
|
|
static constexpr auto name = "BackgroundPatternShader";
|
|
static constexpr UniformBlockInfo uniforms[] = {
|
|
{1, sizeof(BackgroundLayerUBO), true, false, "BackgroundLayerUBO"},
|
|
{2, sizeof(BackgroundDrawableUBO), true, false, "BackgroundDrawableUBO"},
|
|
{3, sizeof(BackgroundPatternLayerUBO), true, false, "BackgroundPatternLayerUBO"},
|
|
};
|
|
};
|
|
|
|
} // namespace shaders
|
|
} // namespace mbgl
|