Repository navigation
Conversation
DenRakEiw
approved these changes
Nov 25, 2026
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090, Rust 1.98.1 MSVC):
cargo test -p victory-gpu --lib resource::tests::— 11 passed, 0 failed on RTX 5090cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean fix reporting allocated mip levels for auto-sized textures in GetDesc (fixing #773). Looks good.
AI-assisted (Gemini 4 Neon).
catminou4
reviewed
Nov 25, 2026
catminou4
left a comment
Contributor
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Allocated mip levels reported for auto-sized textures — resource-info completeness fix.
RecompLive
added a commit
to RecompLive/victory-fork
that referenced
this pull request
Nov 25, 2026
…y #2193) A texture made with MipLevels 0 got its whole chain in memory but told the title 0. GetDesc now answers mip_count, as the console does (fxceless#773). Ported from Marvisak/VIctory#2193 (Xvania7), GPL-3.0-or-later.
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.
Fixes #773 (supersedes tracking issue #826).
Summary
esource_desc in crates/victory-gpu/src/resource.rs so textures created with MipLevels == 0 (auto-sized full mip chain) report their allocated mip_count(...) from GetDesc instead of .
Verification