We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9f24a commit 18cad7dCopy full SHA for 18cad7d
demo/tests.cpp
@@ -1236,6 +1236,17 @@ static void meshletsMax()
1236
assert(mc == 1);
1237
assert(ml[0].triangle_count == 450);
1238
assert(ml[0].vertex_count == 256);
1239
+
1240
+ meshopt_optimizeMeshlet(mv, mt, ml[0].triangle_count, ml[0].vertex_count);
1241
1242
+ // check sequential ordering of remapped indices
1243
+ int vmax = -1;
1244
1245
+ for (size_t i = 0; i < 450 * 3; ++i)
1246
+ {
1247
+ assert(mt[i] <= vmax + 1);
1248
+ vmax = vmax < mt[i] ? mt[i] : vmax;
1249
+ }
1250
}
1251
1252
static void partitionBasic()
0 commit comments