GPUIndexBuf: Find the minimum and maximum index through the builder

Moving the bounds code to the builder can be useful
for future optimizations like building multithreaded.

Reviewed By: fclem, jbakker

Differential Revision: https://developer.blender.org/D11455
This commit is contained in:
Germano Cavalcante
2021-06-07 08:38:38 -03:00
committed by Germano Cavalcante
parent 6e6a1838ea
commit 223016a408
3 changed files with 23 additions and 23 deletions

View File

@@ -73,7 +73,7 @@ class IndexBuf {
IndexBuf(){};
virtual ~IndexBuf();
void init(uint indices_len, uint32_t *indices);
void init(uint indices_len, uint32_t *indices, uint min_index, uint max_index);
void init_subrange(IndexBuf *elem_src, uint start, uint length);
void init_build_on_device(uint index_len);