media-libs/meshoptimizer (bentoo)

Search

Install

Install this package:

emerge -a media-libs/meshoptimizer

Package Information

Description:
meshoptimizer is a C++ library with a plain C API that reorganizes triangle meshes so a GPU renders them faster: it reorders indices for the post-transform vertex cache, reduces overdraw, packs vertex data for efficient fetch, generates meshlet clusters for mesh shaders, and simplifies meshes while preserving their shape. It also implements the vertex and index codecs behind the EXT_meshopt_compression glTF extension. The library has no dependencies of its own and no architecture-specific backend beyond optional SIMD paths that are selected at compile time, so it builds the same way on every arch this overlay keywords. media-gfx/blender needs it as a system library from the 5.2 series on: Blender unbundled its vendored copy, leaving only the thin intern/meshoptimizer_bridge wrapper, and with WITH_STRICT_BUILD_OPTIONS its CMake lookup becomes find_package(meshoptimizer REQUIRED) for the imported target meshoptimizer::meshoptimizer. With USE=gltfpack the package also installs gltfpack, upstream's standalone command-line glTF optimizer. It is off by default because it is an end-user tool rather than part of the library ABI, and no package in this overlay depends on it.
Homepage:
https://github.com/zeux/meshoptimizer
License:
MIT

Versions

Version EAPI Keywords Slot
1.2 8 ~amd64 ~arm64 0/1.2

Metadata

Description

Maintainers

Upstream

Raw Metadata XML
<pkgmetadata>
	<maintainer type="person">
		<email>lucascs@protonmail.com</email>
		<name>Lucas C.S.</name>
	</maintainer>
	<longdescription lang="en">
		meshoptimizer is a C++ library with a plain C API that reorganizes
		triangle meshes so a GPU renders them faster: it reorders indices for
		the post-transform vertex cache, reduces overdraw, packs vertex data
		for efficient fetch, generates meshlet clusters for mesh shaders, and
		simplifies meshes while preserving their shape. It also implements the
		vertex and index codecs behind the EXT_meshopt_compression glTF
		extension.

		The library has no dependencies of its own and no architecture-specific
		backend beyond optional SIMD paths that are selected at compile time,
		so it builds the same way on every arch this overlay keywords.

		media-gfx/blender needs it as a system library from the 5.2 series on:
		Blender unbundled its vendored copy, leaving only the thin
		intern/meshoptimizer_bridge wrapper, and with WITH_STRICT_BUILD_OPTIONS
		its CMake lookup becomes find_package(meshoptimizer REQUIRED) for the
		imported target meshoptimizer::meshoptimizer.

		With USE=gltfpack the package also installs gltfpack, upstream's
		standalone command-line glTF optimizer. It is off by default because it
		is an end-user tool rather than part of the library ABI, and no package
		in this overlay depends on it.
	</longdescription>
	<use>
		<flag name="gltfpack">Build the gltfpack command-line tool, a standalone glTF/GLB
			optimizer that quantizes and compresses meshes and animations</flag>
	</use>
	<upstream>
		<bugs-to>https://github.com/zeux/meshoptimizer/issues</bugs-to>
		<remote-id type="github">zeux/meshoptimizer</remote-id>
	</upstream>
</pkgmetadata>

Lint Warnings

USE Flags

Manage flags for this package: euse -i <flag> -p media-libs/meshoptimizer | euse -E <flag> -p media-libs/meshoptimizer | euse -D <flag> -p media-libs/meshoptimizer

Flag Description 1.2
gltfpack Build the gltfpack command-line tool, a standalone glTF/GLB optimizer that quantizes and compresses meshes and animations
test Build and run the upstream test suite (requires dbus-test-runner) ⚠️

Manifest

Type File Size Versions
DIST meshoptimizer-1.2.tar.gz 565981 bytes 1.2
Unmatched Entries
Type File Size