Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-06 03:46:51 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-06 23:13:06 +0300
commit4ea93029c65fd4cdb8b707494855120c0f792952 (patch)
treea02801daaaf0f0a4e1bb7be84d34e27759b32a36 /source/blender/gpu/intern/gpu_batch_private.hh
parent84d67bd0a937e842618ee7843958f3147ba6af58 (diff)
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.
Diffstat (limited to 'source/blender/gpu/intern/gpu_batch_private.hh')
-rw-r--r--source/blender/gpu/intern/gpu_batch_private.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_batch_private.hh b/source/blender/gpu/intern/gpu_batch_private.hh
index c0444647fe1..dae9c885ee1 100644
--- a/source/blender/gpu/intern/gpu_batch_private.hh
+++ b/source/blender/gpu/intern/gpu_batch_private.hh
@@ -29,6 +29,8 @@
#include "GPU_batch.h"
#include "GPU_context.h"
+#include "gpu_index_buffer_private.hh"
+
namespace blender {
namespace gpu {
@@ -42,6 +44,12 @@ class Batch : public GPUBatch {
virtual ~Batch(){};
virtual void draw(int v_first, int v_count, int i_first, int i_count) = 0;
+
+ /* Convenience casts. */
+ IndexBuf *elem_(void)
+ {
+ return unwrap(elem);
+ };
};
} // namespace gpu