diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-07-30 14:28:05 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-08-02 22:53:17 +0300 |
commit | 1e5ab041d79224a634268e0b80f114b5566387c4 (patch) | |
tree | 59e6622029b7c03b469ee193d50acb464ba1a80e /source/blender/gpu/intern/gpu_batch_private.hh | |
parent | 72206195542369a231a40cf4428cef2508321404 (diff) |
GPUBatch: Add GPU_batch_draw_indirect
This allows rendering a batch with parameters computed by the GPU.
Contains GL backend implementation.
Diffstat (limited to 'source/blender/gpu/intern/gpu_batch_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_batch_private.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_batch_private.hh b/source/blender/gpu/intern/gpu_batch_private.hh index 23052f601d2..8ca19884fd7 100644 --- a/source/blender/gpu/intern/gpu_batch_private.hh +++ b/source/blender/gpu/intern/gpu_batch_private.hh @@ -29,6 +29,7 @@ class Batch : public GPUBatch { virtual ~Batch() = default; virtual void draw(int v_first, int v_count, int i_first, int i_count) = 0; + virtual void draw_indirect(GPUStorageBuf *indirect_buf) = 0; /* Convenience casts. */ IndexBuf *elem_() const |