Formats: support console texture formats 189–191 in texture layouts #11
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11"
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?
Imported from uiliannn/VItoriaBr. Originally posted by Yoshi-233 on 2026-11-25T06:25:18Z.
The 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.