@@ -738,6 +738,8 @@ inline size_t meshopt_buildMeshletsScan(meshopt_Meshlet* meshlets, unsigned int*
738
738
template <typename T>
739
739
inline meshopt_Bounds meshopt_computeClusterBounds (const T* indices, size_t index_count, const float * vertex_positions, size_t vertex_count, size_t vertex_positions_stride);
740
740
template <typename T>
741
+ inline size_t meshopt_partitionClusters (unsigned int * destination, const T* cluster_indices, size_t total_index_count, const unsigned int * cluster_index_counts, size_t cluster_count, size_t vertex_count, size_t target_partition_size);
742
+ template <typename T>
741
743
inline void meshopt_spatialSortTriangles (T* destination, const T* indices, size_t index_count, const float * vertex_positions, size_t vertex_count, size_t vertex_positions_stride);
742
744
#endif
743
745
@@ -1124,6 +1126,14 @@ inline meshopt_Bounds meshopt_computeClusterBounds(const T* indices, size_t inde
1124
1126
return meshopt_computeClusterBounds (in.data , index_count, vertex_positions, vertex_count, vertex_positions_stride);
1125
1127
}
1126
1128
1129
+ template <typename T>
1130
+ inline size_t meshopt_partitionClusters (unsigned int * destination, const T* cluster_indices, size_t total_index_count, const unsigned int * cluster_index_counts, size_t cluster_count, size_t vertex_count, size_t target_partition_size)
1131
+ {
1132
+ meshopt_IndexAdapter<T> in (NULL , cluster_indices, total_index_count);
1133
+
1134
+ return meshopt_partitionClusters (destination, in.data , total_index_count, cluster_index_counts, cluster_count, vertex_count, target_partition_size);
1135
+ }
1136
+
1127
1137
template <typename T>
1128
1138
inline void meshopt_spatialSortTriangles (T* destination, const T* indices, size_t index_count, const float * vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
1129
1139
{
0 commit comments