Issue/1687 (#1697)

Co-authored-by: Bart Louwers <bart@emeel.net>
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Tim Sylvester
2023-09-28 11:18:42 -07:00
committed by GitHub
parent 2d8cde8abf
commit 810be67fa2
94 changed files with 1467 additions and 1043 deletions

View File

@@ -22,8 +22,32 @@
using namespace std::string_literals;
namespace mbgl {
namespace mtl {
shaders::AttributeInfo::AttributeInfo(std::size_t index_,
gfx::AttributeDataType dataType_,
std::size_t count_,
std::string_view name_)
: index(index_),
dataType(dataType_),
count(count_),
name(name_),
nameID(StringIndexer::get(name_)) {}
shaders::UniformBlockInfo::UniformBlockInfo(
std::size_t index_, bool vertex_, bool fragment_, std::size_t size_, std::string_view name_)
: index(index_),
vertex(vertex_),
fragment(fragment_),
size(size_),
name(name_),
nameID(StringIndexer::get(name_)) {}
shaders::TextureInfo::TextureInfo(std::size_t index_, std::string_view name_)
: index(index_),
name(name_),
nameID(StringIndexer::get(name_)) {}
namespace mtl {
namespace {
MTL::BlendOperation metalBlendOperation(const gfx::ColorBlendEquationType& colorBlend) {
switch (colorBlend) {