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:
authorClément Foucault <foucault.clem@gmail.com>2019-05-04 01:46:26 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-04 15:11:04 +0300
commit1d8ed6dcd7cd2b3ccfaaacb59387dca481262eb6 (patch)
treeafec238e5e564dcc4f3c4c7bc2717bd9fdf604d8 /source/blender/gpu/GPU_buffers.h
parent80cd292381cb599115782dc98f5999a2fbbe4d67 (diff)
GPUBuffers: Save / expose material index per buffers
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r--source/blender/gpu/GPU_buffers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h
index 20047174bb1..b9ec897a9ec 100644
--- a/source/blender/gpu/GPU_buffers.h
+++ b/source/blender/gpu/GPU_buffers.h
@@ -88,6 +88,8 @@ void GPU_pbvh_grid_buffers_update(GPU_PBVH_Buffers *buffers,
/* draw */
struct GPUBatch *GPU_pbvh_buffers_batch_get(GPU_PBVH_Buffers *buffers, bool fast, bool wires);
+short GPU_pbvh_buffers_material_index_get(GPU_PBVH_Buffers *buffers);
+
bool GPU_pbvh_buffers_has_mask(GPU_PBVH_Buffers *buffers);
/* debug PBVH draw */