Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_buffers.h
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
| GPU_PBVH_Buffers *GPU_pbvh_grid_buffers_build(int totgrid, unsigned int **grid_hidden); | GPU_PBVH_Buffers *GPU_pbvh_grid_buffers_build(int totgrid, unsigned int **grid_hidden); | ||||
| GPU_PBVH_Buffers *GPU_pbvh_bmesh_buffers_build(bool smooth_shading); | GPU_PBVH_Buffers *GPU_pbvh_bmesh_buffers_build(bool smooth_shading); | ||||
| /* Free part of data for update. Not thread safe, must run in OpenGL main thread. */ | /* Free part of data for update. Not thread safe, must run in OpenGL main thread. */ | ||||
| void GPU_pbvh_bmesh_buffers_update_free(GPU_PBVH_Buffers *buffers); | void GPU_pbvh_bmesh_buffers_update_free(GPU_PBVH_Buffers *buffers); | ||||
| void GPU_pbvh_grid_buffers_update_free(GPU_PBVH_Buffers *buffers, | void GPU_pbvh_grid_buffers_update_free(GPU_PBVH_Buffers *buffers, | ||||
| const struct DMFlagMat *grid_flag_mats, | const struct DMFlagMat *grid_flag_mats, | ||||
| int *grid_indices); | const int *grid_indices); | ||||
| /* Update mesh buffers without topology changes. Threaded. */ | /* Update mesh buffers without topology changes. Threaded. */ | ||||
| enum { | enum { | ||||
| GPU_PBVH_BUFFERS_SHOW_MASK = (1 << 1), | GPU_PBVH_BUFFERS_SHOW_MASK = (1 << 1), | ||||
| GPU_PBVH_BUFFERS_SHOW_VCOL = (1 << 2), | GPU_PBVH_BUFFERS_SHOW_VCOL = (1 << 2), | ||||
| GPU_PBVH_BUFFERS_SHOW_SCULPT_FACE_SETS = (1 << 3), | GPU_PBVH_BUFFERS_SHOW_SCULPT_FACE_SETS = (1 << 3), | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||