Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <mano-wii>2021-06-07 14:38:38 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-06-07 14:41:38 +0300
commit223016a408bc0086b4cbdeec3a8c1db66c2d2236 (patch)
tree1c7eeca0848546793747ab21cb1107bd52e70d1a /source/blender/gpu/GPU_index_buffer.h
parent6e6a1838ea6923df147813954ce08b0093cf00be (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.h2
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;