Skip to content

feat(ltk_texture): impl volume texture handling and new format support#153

Merged
Crauzer merged 7 commits into
mainfrom
new-tex-formats
Jul 12, 2026
Merged

feat(ltk_texture): impl volume texture handling and new format support#153
Crauzer merged 7 commits into
mainfrom
new-tex-formats

Conversation

@Crauzer

@Crauzer Crauzer commented Jul 11, 2026

Copy link
Copy Markdown
Member

This PR covers multiple points of interest related to the .tex format.

  • Fixes Texture Surface public API ergonomics by making it possible to handle different pixel formats correctly
  • Adds support for Rgba16Float and Rgba32Float format types
  • Supports parsing 3d volume textures
  • Switches from using the intel compressor to texpresso so consumers can get access to compression even without enabling the feature. Texpresso's compressor also does cluster fitting on the input data which eliminates/reduces color banding in Bc1 and Bc3 formats. The previous dithering algorithm has been removed as it produced worse results.

@Crauzer
Crauzer requested a review from alanpq July 11, 2026 05:36
@Crauzer Crauzer self-assigned this Jul 11, 2026
@Crauzer Crauzer added crate:ltk_texture Texture crate (TEX/DDS) area:reading File/format reading/parsing area:api Public API design area:compression Compression/decompression performance Performance improvement priority:high High priority format:tex Texture format labels Jul 11, 2026
@Crauzer Crauzer linked an issue Jul 11, 2026 that may be closed by this pull request
Comment thread crates/ltk_texture/src/tex/encode.rs Outdated
@Crauzer
Crauzer requested a review from alanpq July 12, 2026 10:34
@Crauzer
Crauzer merged commit d93f794 into main Jul 12, 2026
1 check passed
@Crauzer
Crauzer deleted the new-tex-formats branch July 12, 2026 12:31
@github-actions github-actions Bot mentioned this pull request Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:api Public API design area:compression Compression/decompression area:reading File/format reading/parsing crate:ltk_texture Texture crate (TEX/DDS) format:tex Texture format performance Performance improvement priority:high High priority

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

New unsupported TEX formats

2 participants