diff options
author | Germano Cavalcante <mano-wii> | 2021-06-07 14:38:38 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-06-07 14:41:38 +0300 |
commit | 223016a408bc0086b4cbdeec3a8c1db66c2d2236 (patch) | |
tree | 1c7eeca0848546793747ab21cb1107bd52e70d1a /source/blender/gpu/intern/gpu_index_buffer_private.hh | |
parent | 6e6a1838ea6923df147813954ce08b0093cf00be (diff) |
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
Diffstat (limited to 'source/blender/gpu/intern/gpu_index_buffer_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_index_buffer_private.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_index_buffer_private.hh b/source/blender/gpu/intern/gpu_index_buffer_private.hh index 358258604bf..e8a47417604 100644 --- a/source/blender/gpu/intern/gpu_index_buffer_private.hh +++ b/source/blender/gpu/intern/gpu_index_buffer_private.hh @@ -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); |