feat(gpu): add bounded high-precision export rendering - #1395
Open
VailElla wants to merge 4 commits into
Open
Conversation
VailElla
marked this pull request as ready for review
July 18, 2026 14:11
VailElla
force-pushed
the
codex/jxl-pr-01-high-precision-export
branch
from
July 20, 2026 04:11
8970db0 to
1db32c9
Compare
VailElla
force-pushed
the
codex/jxl-pr-01-high-precision-export
branch
from
July 25, 2026 11:53
1db32c9 to
1de7b16
Compare
Contributor
Author
|
Refresh validation (2026-07-25): rebased onto current upstream main and force-with-lease updated. Added an adapter capability gate for the RGBA16Float high-precision path. Compatibility behavior:
Memory regression coverage now models a 100 MP (11,600 x 8,600) input: five reusable RGBA16F intermediates remain capped at 2,304 x 2,304 (<220 MiB combined), versus >3 GiB if those intermediates were full-image allocations. Full-size RGBA8 display textures are intentionally unchanged.
|
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a bounded, crate-private high-precision GPU render path for the follow-up JPEG XL export work. The normal preview and export path keeps its existing 8-bit contract, while the new path renders tile output as
rgba16floatand returns RGB/RGBA 32-bit float image data without an 8-bit intermediate.This draft also bounds reusable compute textures to one overlapped processing tile instead of allocating six full-image textures for large inputs.
Type of Change
Changes Made
rgba16floatstorage target while deferring integer dithering to the follow-up encoder.2304 × 2304overlapped tile; full-size display textures remain unchanged.Screenshots/Videos
N/A — this is a backend-only foundation and does not change the current UI or exported output by itself.
Testing
Test Configuration:
Automated:
cargo +1.96.1 fmt --manifest-path src-tauri/Cargo.toml --check— passedcargo +1.96.1 check --manifest-path src-tauri/Cargo.toml— passed; warning set matches currentmainwith no new warningscargo +1.96.1 test --manifest-path src-tauri/Cargo.toml -- --nocapture— 3 passed, 0 failedcargo +1.96.1 test --manifest-path src-tauri/Cargo.toml gpu_processing:: -- --nocapture— 3 passed, 0 failed after final cleanupcargo +1.96.1 clippy --manifest-path src-tauri/Cargo.toml --all-targets --all-features— passed; only current macOS baseline warnings remainnpm ci— completed with 0 vulnerabilitiesnpm run build— passedgit diff --check— passedChecklist
Additional Notes
mainat41d92c8fand kept to two focused commits touching onlysrc-tauri/src/gpu_processing.rs.AI Disclaimer:
Please state the involvement of AI in this PR: