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/GPU_index_buffer.h | |
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/GPU_index_buffer.h')
-rw-r--r-- | source/blender/gpu/GPU_index_buffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_index_buffer.h b/source/blender/gpu/GPU_index_buffer.h index 8362dbcaccc..4e8d854c7ce 100644 --- a/source/blender/gpu/GPU_index_buffer.h +++ b/source/blender/gpu/GPU_index_buffer.h @@ -40,6 +40,8 @@ typedef struct GPUIndexBufBuilder { uint max_allowed_index; uint max_index_len; uint index_len; + uint index_min; + uint index_max; GPUPrimType prim_type; uint32_t *data; } GPUIndexBufBuilder; |