GPUBatch: Move allocator to backend

This commit is contained in:
2020-08-10 11:41:22 +02:00
parent 9443da6166
commit 47bfb0f7ad
10 changed files with 176 additions and 8 deletions

View File

@@ -27,6 +27,7 @@
#include "gpu_context_private.hh"
#include "gpu_drawlist_private.hh"
#include "gpu_batch_private.hh"
namespace blender {
namespace gpu {
@@ -38,7 +39,12 @@ class GPUBackend {
static GPUBackend *get(void);
virtual GPUContext *context_alloc(void *ghost_window) = 0;
virtual Batch *batch_alloc(void) = 0;
virtual DrawList *drawlist_alloc(int list_length) = 0;
// virtual FrameBuffer *framebuffer_alloc(void) = 0;
// virtual Shader *shader_alloc(void) = 0;
// virtual Texture *texture_alloc(void) = 0;
};
} // namespace gpu