mirror of
https://github.com/openharmony/third_party_meshoptimizer.git
synced 2026-07-20 04:13:44 -04:00
vertexfilter: Consolidate Oct8 and Oct12 into a single entrypoint
Since both filters can now handle variable bitrate it no longer makes as much sense to split them. This change consolidates the two implementations and uses a single templated scalar implementation as well. This makes gltfpack code a bit simpler as well.
This commit is contained in:
@@ -103,15 +103,15 @@ void benchFilters(size_t count)
|
||||
{
|
||||
double t0 = timestamp();
|
||||
|
||||
meshopt_decodeFilterOct8(&d4[0], count4, 4);
|
||||
meshopt_decodeFilterOct(&d4[0], count4, 4);
|
||||
|
||||
double t1 = timestamp();
|
||||
|
||||
meshopt_decodeFilterOct12(&d8[0], count4, 8);
|
||||
meshopt_decodeFilterOct(&d8[0], count4, 8);
|
||||
|
||||
double t2 = timestamp();
|
||||
|
||||
meshopt_decodeFilterQuat12(&d8[0], count4, 8);
|
||||
meshopt_decodeFilterQuat(&d8[0], count4, 8);
|
||||
|
||||
double t3 = timestamp();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user