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:
Diffstat (limited to 'source/blender/gpu/intern/gpu_batch_private.hh')
-rw-r--r--source/blender/gpu/intern/gpu_batch_private.hh13
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_batch_private.hh b/source/blender/gpu/intern/gpu_batch_private.hh
index dae9c885ee1..c71670d4f1f 100644
--- a/source/blender/gpu/intern/gpu_batch_private.hh
+++ b/source/blender/gpu/intern/gpu_batch_private.hh
@@ -30,6 +30,7 @@
#include "GPU_context.h"
#include "gpu_index_buffer_private.hh"
+#include "gpu_vertex_buffer_private.hh"
namespace blender {
namespace gpu {
@@ -46,10 +47,18 @@ class Batch : public GPUBatch {
virtual void draw(int v_first, int v_count, int i_first, int i_count) = 0;
/* Convenience casts. */
- IndexBuf *elem_(void)
+ IndexBuf *elem_(void) const
{
return unwrap(elem);
- };
+ }
+ VertBuf *verts_(const int index) const
+ {
+ return unwrap(verts[index]);
+ }
+ VertBuf *inst_(const int index) const
+ {
+ return unwrap(inst[index]);
+ }
};
} // namespace gpu