You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/meshoptimizer.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -300,7 +300,7 @@ MESHOPTIMIZER_API int meshopt_decodeIndexSequence(void* destination, size_t inde
300
300
* Encodes meshlet data into an array of bytes that is generally smaller and compresses better compared to original.
301
301
* Returns encoded data size on success, 0 on error; the only error condition is if buffer doesn't have enough space
302
302
* This function encodes a single meshlet; when encoding multiple meshlets, additional headers may be necessary to store vertex/triangle count and encoded size.
303
-
* For maximum efficiency the meshlet being encoded should be optimized using meshopt_optimizeMeshlet; additionally, underlying vertex data should be optimized for locality (fetch).
303
+
* For maximum efficiency the meshlet being encoded should be optimized using meshopt_optimizeMeshlet; additionally, vertex reference data should be optimized for locality (fetch).
304
304
*
305
305
* buffer must contain enough space for the encoded meshlet (use meshopt_encodeMeshletBound to compute worst case size)
306
306
* vertices may be NULL, in which case vertex_count must be 0 and only triangle data is encoded
* vertices must contain enough space for the resulting vertex data, aligned to 4 bytes (align(vertex_count * vertex_size, 4) bytes)
319
319
* vertex_size must be 2 (16-bit vertex references) or 4 (32-bit vertex references)
320
320
* triangles must contain enough space for the resulting triangle data, aligned to 4 bytes (align(triangle_count * triangle_size, 4) bytes)
321
-
* triangle_size must be 3 (8-bit indices) or 4 (32-bit triangles, stored as (a) | (b << 8) | (c << 16))
321
+
* triangle_size must be 3 (8-bit triangle indices) or 4 (32-bit packed triangles, stored as (a) | (b << 8) | (c << 16))
322
322
* vertex_count, triangle_count match those used during encoding exactly; buffer_size must be equal to the encoded size returned by meshopt_encodeMeshlet.
323
+
* vertices may be NULL, in which case vertex_count must be 0 and the meshlet must contain just triangle data
323
324
*
324
325
* When using "raw" decoding (meshopt_decodeMeshletRaw), both vertices and triangles should have available space further aligned to 16 bytes for efficient SIMD decoding.
0 commit comments