54 const int *sculpt_face_sets,
98 const int *sculpt_face_sets,
99 const int face_sets_color_seed,
100 const int face_sets_color_default,
101 const int update_flags,
102 const float (*vert_normals)[3]);
108 bool active_attrs_only);
118 struct GSet *bm_faces,
119 struct GSet *bm_unique_verts,
120 struct GSet *bm_other_verts,
121 const int update_flags);
133 const int *sculpt_face_sets,
134 int face_sets_color_seed,
135 int face_sets_color_default,
Generic geometry attributes built on CustomData.
A BVH for high poly meshes.
GPU_PBVH_Buffers * GPU_pbvh_mesh_buffers_build(const struct MPoly *mpoly, const struct MLoop *mloop, const struct MLoopTri *looptri, const struct MVert *mvert, const int *face_indices, const int *sculpt_face_sets, int face_indices_len, const struct Mesh *mesh)
short GPU_pbvh_buffers_material_index_get(GPU_PBVH_Buffers *buffers)
struct GPUBatch * GPU_pbvh_buffers_batch_get(GPU_PBVH_Buffers *buffers, bool fast, bool wires)
void GPU_pbvh_buffers_free(GPU_PBVH_Buffers *buffers)
void GPU_pbvh_bmesh_buffers_update(PBVHGPUFormat *vbo_id, struct GPU_PBVH_Buffers *buffers, struct BMesh *bm, struct GSet *bm_faces, struct GSet *bm_unique_verts, struct GSet *bm_other_verts, const int update_flags)
void GPU_pbvh_bmesh_buffers_update_free(GPU_PBVH_Buffers *buffers)
void GPU_pbvh_free_format(PBVHGPUFormat *vbo_id)
@ GPU_PBVH_BUFFERS_SHOW_MASK
@ GPU_PBVH_BUFFERS_SHOW_VCOL
@ GPU_PBVH_BUFFERS_SHOW_SCULPT_FACE_SETS
void GPU_pbvh_mesh_buffers_update(PBVHGPUFormat *vbo_id, GPU_PBVH_Buffers *buffers, const struct MVert *mvert, const CustomData *vdata, const CustomData *ldata, const float *vmask, const int *sculpt_face_sets, const int face_sets_color_seed, const int face_sets_color_default, const int update_flags, const float(*vert_normals)[3])
void GPU_pbvh_grid_buffers_update(PBVHGPUFormat *vbo_id, GPU_PBVH_Buffers *buffers, struct SubdivCCG *subdiv_ccg, struct CCGElem **grids, const struct DMFlagMat *grid_flag_mats, int *grid_indices, int totgrid, const int *sculpt_face_sets, int face_sets_color_seed, int face_sets_color_default, const struct CCGKey *key, int update_flags)
bool GPU_pbvh_buffers_has_overlays(GPU_PBVH_Buffers *buffers)
void GPU_pbvh_buffers_update_flush(GPU_PBVH_Buffers *buffers)
GPU_PBVH_Buffers * GPU_pbvh_grid_buffers_build(int totgrid, unsigned int **grid_hidden, bool smooth)
GPU_PBVH_Buffers * GPU_pbvh_bmesh_buffers_build(bool smooth_shading)
bool GPU_pbvh_attribute_names_update(PBVHType pbvh_type, PBVHGPUFormat *vbo_id, const struct CustomData *vdata, const struct CustomData *ldata, bool active_attrs_only)
void GPU_pbvh_grid_buffers_update_free(GPU_PBVH_Buffers *buffers, const struct DMFlagMat *grid_flag_mats, const int *grid_indices)
PBVHGPUFormat * GPU_pbvh_make_format(void)
ATTR_WARN_UNUSED_RESULT BMesh * bm
smooth(Type::FLOAT, "mask_weight")
const DMFlagMat * grid_flag_mats
BLI_bitmap *const * grid_hidden