Skip to content

feat: add KHR_texture_basisu extension (JSON-level only)#467

Open
mholiv wants to merge 1 commit intogltf-rs:mainfrom
mholiv:KHR_texture_basisu2
Open

feat: add KHR_texture_basisu extension (JSON-level only)#467
mholiv wants to merge 1 commit intogltf-rs:mainfrom
mholiv:KHR_texture_basisu2

Conversation

@mholiv
Copy link

@mholiv mholiv commented Feb 16, 2026

Adds a KHR_texture_basisu feature flag that lets textures reference Basis Universal (KTX2) compressed images via the extension's source field. Follows the same pattern as EXT_texture_webp: a TextureBasisu struct, a check in primary_source(), and "image/ktx2" in the valid MIME types list.

Based on #392 by @aW4KeNiNG. The original PR had drifted pretty far behind main over time, so I rebased the basisu bits onto current main.

Adds a KHR_texture_basisu feature flag that lets textures reference Basis Universal (KTX2) compressed images via the extension's `source` field. Follows the same pattern as EXT_texture_webp: a TextureBasisu
struct, a check in primary_source(), and "image/ktx2" in the valid MIME types list.

Based on gltf-rs#392 by @aW4KeNiNG. The original PR had drifted pretty far behind main over time, so I rebased the basisu bits onto current main.
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