[core] introduce gfx::RenderPass
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <mbgl/gl/command_encoder.hpp>
|
||||
#include <mbgl/gl/render_pass.hpp>
|
||||
#include <mbgl/gl/context.hpp>
|
||||
#include <mbgl/gl/debugging_extension.hpp>
|
||||
#include <mbgl/platform/gl_functions.hpp>
|
||||
@@ -13,6 +14,11 @@ CommandEncoder::~CommandEncoder() {
|
||||
context.performCleanup();
|
||||
}
|
||||
|
||||
std::unique_ptr<gfx::RenderPass>
|
||||
CommandEncoder::createRenderPass(const char* name, const gfx::RenderPassDescriptor& descriptor) {
|
||||
return std::make_unique<gl::RenderPass>(*this, name, descriptor);
|
||||
}
|
||||
|
||||
void CommandEncoder::pushDebugGroup(const char* name) {
|
||||
(void)name;
|
||||
#ifndef NDEBUG
|
||||
|
||||
Reference in New Issue
Block a user