Custom drawable layer v3 (#3210)

This commit is contained in:
Adrian Cojocaru
2025-02-28 23:49:20 +02:00
committed by GitHub
parent b09235b41e
commit 7339fb91fd
90 changed files with 3930 additions and 462 deletions

View File

@@ -39,7 +39,7 @@ void UniformBuffer::update(const void* data, std::size_t dataSize) {
buffer.update(data, dataSize, /*offset=*/0);
}
void UniformBufferArray::bind(RenderPass& renderPass) const noexcept {
void UniformBufferArray::bindMtl(RenderPass& renderPass) const noexcept {
for (size_t id = 0; id < allocatedSize(); id++) {
const auto& uniformBuffer = get(id);
if (!uniformBuffer) continue;
@@ -54,5 +54,9 @@ void UniformBufferArray::bind(RenderPass& renderPass) const noexcept {
}
}
void UniformBufferArray::bind(gfx::RenderPass& renderPass) {
bindMtl(static_cast<RenderPass&>(renderPass));
}
} // namespace mtl
} // namespace mbgl