Files
MapLibreParticleLab/include/mln/mtl/renderable_resource.hpp
Bart Louwers 2a8ebc4906 core: rename mbgl directories to mln (#4511)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-08-22 20:50:14 +02:00

31 lines
804 B
C++

#pragma once
#include <mln/gfx/renderable.hpp>
#include <mln/mtl/mtl_fwd.hpp>
#include <cstdlib>
namespace mln {
namespace mtl {
class RendererBackend;
class RenderableResource : public gfx::RenderableResource {
protected:
explicit RenderableResource() = default;
public:
virtual void swap() {
// Renderable resources that require a swap function to be called
// explicitly can override this method.
}
virtual const mln::mtl::RendererBackend& getBackend() const = 0;
virtual const mln::mtl::MTLCommandBufferPtr& getCommandBuffer() const = 0;
virtual mln::mtl::MTLBlitPassDescriptorPtr getUploadPassDescriptor() const = 0;
virtual const mln::mtl::MTLRenderPassDescriptorPtr& getRenderPassDescriptor() const = 0;
};
} // namespace mtl
} // namespace mln