Export every slice of block-compressed arrays and cube maps #300
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/holdmysocks--SixNG!300
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/300/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?
@holdmysocks on GitHub · 2026-11-25 18:30 UTC · original
holdmysocks:six-bc-slices→master· +31 −11 · 2 files · 2 commits · merged 2026-11-25 19:07 UTCTexture export now writes every slice of block-compressed arrays and cube maps from the texture dictionaries. Before, only slice 0 was written. This closes the gap left by PR 289, which did the same for uncompressed textures.
Layout. In the texture dictionaries, BC arrays are stored slice by slice, each slice with its whole
SW_4KB_Smip chain. The bulk stores, by contrast, store them level by level. Measured on the dictionary BC7 arrays:Output.
slices_linearnow covers BC arrays and cubes, with the mips thatexportable_mipsalready allows. The DDS is a 2D array or cube map, slice by slice. Exported sizes:<name>_slices.pngstacks mip 0 of every slice.Not covered: the one BC volume, a BC5 128×128×128 cloud volume. It fits neither 2D order, its 3D BC layout isn't mapped, and it still exports its first slice.
Checked with
cargo check --workspace --all-targetsandcargo test -p sixng-core -p sixng-gui --release.