From 4ea93029c65fd4cdb8b707494855120c0f792952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sun, 6 Sep 2020 02:46:51 +0200 Subject: GPUIndexBuf: GL backend Isolation This is part of the Vulkan backend task T68990. There is no real change, only making some code re-organisation. This also make the IndexBuf completely abstract from outside the GPU module. --- source/blender/gpu/intern/gpu_backend.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/gpu/intern/gpu_backend.hh') diff --git a/source/blender/gpu/intern/gpu_backend.hh b/source/blender/gpu/intern/gpu_backend.hh index 330c7d59b6d..b5162fd820f 100644 --- a/source/blender/gpu/intern/gpu_backend.hh +++ b/source/blender/gpu/intern/gpu_backend.hh @@ -33,6 +33,7 @@ namespace gpu { class Batch; class DrawList; class FrameBuffer; +class IndexBuf; class Shader; class Texture; class UniformBuf; @@ -50,6 +51,7 @@ class GPUBackend { virtual Batch *batch_alloc(void) = 0; virtual DrawList *drawlist_alloc(int list_length) = 0; virtual FrameBuffer *framebuffer_alloc(const char *name) = 0; + virtual IndexBuf *indexbuf_alloc(void) = 0; virtual Shader *shader_alloc(const char *name) = 0; virtual Texture *texture_alloc(const char *name) = 0; virtual UniformBuf *uniformbuf_alloc(int size, const char *name) = 0; -- cgit v1.2.3