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

@@ -3,6 +3,7 @@
#include <mbgl/vulkan/context.hpp>
#include <mbgl/util/logging.hpp>
#include <mbgl/vulkan/command_encoder.hpp>
#include <mbgl/vulkan/render_pass.hpp>
#include <cassert>
@@ -68,6 +69,10 @@ void UniformBufferArray::createOrUpdate(
gfx::UniformBufferArray::createOrUpdate(id, data, size, context, persistent);
}
void UniformBufferArray::bind(gfx::RenderPass& renderPass) {
bindDescriptorSets(static_cast<RenderPass&>(renderPass).getEncoder());
}
void UniformBufferArray::bindDescriptorSets(CommandEncoder& encoder) {
if (!descriptorSet) {
descriptorSet = std::make_unique<UniformDescriptorSet>(encoder.getContext(), descriptorSetType);