diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-01 21:27:38 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-02 20:35:59 +0300 |
commit | d63829117c21c0d926cf0a9df645c3ed5cd8057a (patch) | |
tree | 5497f58c4b52cd894f4811fb35da3727fb059d8f /intern | |
parent | 62390527b2e9b6a6a2939df120f87b5b2a54e74b (diff) |
DRW: Refactor simple instancing.
Instead of creating a new instancing shading group without attrib, we now have instancing calls. The benefits is that they can be culled.
They can be used in conjuction with the standard and generate calls but shader must support it (which is generally not the case).
We store a pointer to the actual count so that the number can be tweaked between redraw.
This will makes multi layer rendering more efficient.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/gawain/gawain/gwn_batch.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/intern/gawain/gawain/gwn_batch.h b/intern/gawain/gawain/gwn_batch.h index 788202ff3d5..3e90ef091f1 100644 --- a/intern/gawain/gawain/gwn_batch.h +++ b/intern/gawain/gawain/gwn_batch.h @@ -119,9 +119,6 @@ void GWN_batch_draw(Gwn_Batch*); // This does not bind/unbind shader and does not call gpuBindMatrices() void GWN_batch_draw_range_ex(Gwn_Batch*, int v_first, int v_count, bool force_instance); -#define GWN_batch_draw_range(batch, first, count) \ - GWN_batch_draw_range_ex(batch, first, count, false) - // Does not even need batch void GWN_draw_primitive(Gwn_PrimType, int v_count); |