Formats: support console texture formats 189–191 in texture layouts #11
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/uiliannn--VItoriaBr!11
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/11/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Yoshi-233 on GitHub · 2026-11-25 06:25 UTC · original
Yoshi-233:backport/console-texture-formats→main· +23 −2 · 1 files · 2 commits · merged 2026-11-25 09:49 UTCThe GPU resource table already assigns byte sizes to console formats 189, 190 and 191. The format table used by
Texture::newomitted them, so layout creation returnedError::Invalidfor all three.The first commit backports @davutsimsekk's format mapping from fxceless/victory-fork#735. Formats 189 and 191 use four bytes per texel, and format 190 uses one. The second commit tests the public
Texture::newentry point against RGBA8 and R8 reference layouts, including the mip and array layout.On native Linux, I tested a synthetic 257 × 129 texture with four mip levels and two array slices in both linear and 64 KiB tiled layouts. All six cases returned
Invalidonb8634afand matched their reference layouts on this branch.cargo test --locked -p victory-formats --libpassed with 26 tests passed and four ignored. This verifies CPU-side layout calculation. Actual rendering remains to be tested.