Blender Git Commit Log

Git Commits -> Revision ebdae75

Revision ebdae75 by Germano Cavalcante (master)
August 23, 2021, 16:37 (GMT)
Cleanup: Move 'tris_per_mat' member out of 'MeshBufferCache'

`MeshBufferCache` is a struct representing a list of buffers.

As such, `GPUIndexBuf **tris_per_mat` is out of place as it does not
represent one of the buffers in the list.

In fact this member should be close to `GPUBatch **surface_per_mat` as
they are related.

The code for dependencies between buffer and batch had to be reworked
as it relies on the member's position.

Differential Revision: https://developer.blender.org/D12227

Commit Details:

Full Hash: ebdae7573618637c60e836bbc00618f65a7a7c4f
Parent Commit: 7d17f2a
Lines Changed: +165, -159

3 Modified Paths:

/source/blender/draw/intern/draw_cache_extract.h (+3, -2) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+154, -147) (Diff)
/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc (+8, -10) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021