summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/command_encoder.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gfx/command_encoder.hpp')
-rw-r--r--src/mbgl/gfx/command_encoder.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mbgl/gfx/command_encoder.hpp b/src/mbgl/gfx/command_encoder.hpp
index f095c5b867..145c2bef82 100644
--- a/src/mbgl/gfx/command_encoder.hpp
+++ b/src/mbgl/gfx/command_encoder.hpp
@@ -2,9 +2,14 @@
#include <mbgl/gfx/debug_group.hpp>
+#include <memory>
+
namespace mbgl {
namespace gfx {
+class RenderPassDescriptor;
+class RenderPass;
+
class CommandEncoder {
protected:
explicit CommandEncoder() = default;
@@ -21,6 +26,8 @@ public:
DebugGroup<CommandEncoder> createDebugGroup(const char* name) {
return { *this, name };
}
+
+ virtual std::unique_ptr<RenderPass> createRenderPass(const char* name, const RenderPassDescriptor&) = 0;
};
} // namespace gfx