Skip to content

Conversation

@zeux
Copy link
Owner

@zeux zeux commented Nov 30, 2025

K=1 was never valid, as Z must encode 1.0f as a signed K-bit integer,
and K=1 can only encode -1 and 0. Valid encodings must start at K=2.

Also update documentation for other filters to specify ranges during
encoding, and omit the precise range for decode functions to reduce
redundancy. After these updates, the documented and validated bit
counts should match the upcoming glTF KHR_meshopt_compression
specification (1+ for exponential, 2+ for octahedral and color, 4+ for
quaternion).

zeux added 3 commits November 30, 2025 11:25
K=1 was never valid, as Z must encode 1.0f as a signed K-bit integer,
and K=1 can only encode -1 and 0. Valid encodings must start at K=2.

Also update documentation for other filters to specify ranges during
encoding, and omit the precise range for decode functions to reduce
redundancy.
bits=1 was never a valid configuration because it can't encode Z=1.
Adjust and correct bit count limits for various filters to make the
documented values match native/JS checks and actually valid bit
encodings.
@zeux zeux merged commit 6ee4da4 into master Dec 1, 2025
13 checks passed
@zeux zeux deleted the filter-limits branch December 1, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant