Files
MapLibreParticleLab/include/mbgl/style/layers/mtl/custom_layer_render_parameters.hpp
Steve Gifford 49f80e95f3 Changes to the custom Metal layer to allow more flexible rendering (#4446)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: louwers <649392+louwers@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2026-08-12 00:23:35 +02:00

35 lines
790 B
C++

#pragma once
#include <mbgl/style/layers/custom_layer_render_parameters.hpp>
#include <mbgl/gfx/render_pass.hpp>
#include <mbgl/mtl/mtl_fwd.hpp>
#include <Foundation/Foundation.hpp>
#include <Metal/Metal.hpp>
#include <memory>
namespace mbgl {
class PaintParameters;
namespace style {
namespace mtl {
/**
* Metal subclass of CustomLayerRenderParameters
*/
struct CustomLayerRenderParameters : mbgl::style::CustomLayerRenderParameters {
const std::unique_ptr<mbgl::gfx::RenderPass> &renderPass;
mbgl::mtl::MTLRenderCommandEncoderPtr encoder;
mbgl::mtl::MTLCommandBufferPtr commandBuffer;
mbgl::mtl::MTLRenderPassDescriptorPtr renderPassDesc;
CustomLayerRenderParameters(const PaintParameters &);
};
} // namespace mtl
} // namespace style
} // namespace mbgl