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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-01-16 09:31:12 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-01-16 09:31:26 +0300
commit3574f2730d2a42cda2881d26209b8dc53b1d2047 (patch)
treedfd1aa439249d44ce10de737aea5259db70781c8 /source/blender/draw/intern/mesh_extractors/extract_mesh.h
parentb87d87b1d3c8400e4ee4ea3f0763df64c8ca7fc0 (diff)
Cleanup: deduplicate GPU subdiv data extraction loops
This puts the loop over the final subdivision quads outside of the mesh iteration callback. This can also allow for easier parallel execution in the future if need be.
Diffstat (limited to 'source/blender/draw/intern/mesh_extractors/extract_mesh.h')
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh.h b/source/blender/draw/intern/mesh_extractors/extract_mesh.h
index 7c6f4dea6c9..5d3eaf16f10 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh.h
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh.h
@@ -225,7 +225,8 @@ typedef void(ExtractInitSubdivFn)(const struct DRWSubdivCache *subdiv_cache,
void *data);
typedef void(ExtractIterSubdivFn)(const struct DRWSubdivCache *subdiv_cache,
const MeshRenderData *mr,
- void *data);
+ void *data,
+ uint subdiv_quad_index);
typedef void(ExtractFinishSubdivFn)(const struct DRWSubdivCache *subdiv_cache,
const MeshRenderData *mr,
struct MeshBatchCache *cache,