diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-14 02:07:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-12-14 18:17:29 +0300 |
commit | c09913e9ddc2d93894549923a90ee471c3a368db (patch) | |
tree | 8b3b62739e8f6c4dc65b21db70b3b632f5140877 /source/blender/gpu/GPU_batch.h | |
parent | 0ee0f0ebf6a9bb1596813788c3b0e5acabaaa4f7 (diff) |
GPUBatch: Add GPU_batch_clear to clear batches without freeing
Diffstat (limited to 'source/blender/gpu/GPU_batch.h')
-rw-r--r-- | source/blender/gpu/GPU_batch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_batch.h b/source/blender/gpu/GPU_batch.h index 5f87523829a..d47df08afb6 100644 --- a/source/blender/gpu/GPU_batch.h +++ b/source/blender/gpu/GPU_batch.h @@ -107,6 +107,7 @@ GPUBatch *GPU_batch_duplicate(GPUBatch *batch_src); #define GPU_batch_init(batch, prim, verts, elem) \ GPU_batch_init_ex(batch, prim, verts, elem, 0) +void GPU_batch_clear(GPUBatch *); /* Same as discard but does not free. */ void GPU_batch_discard(GPUBatch *); /* verts & elem are not discarded */ void GPU_batch_vao_cache_clear(GPUBatch *); |