diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 13:22:35 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 13:22:35 -0500 |
| commit | a28d967966959a5d02a1f9899b9965a4cb65dfdd (patch) | |
| tree | be5796eb225875b35b43aceb30cd068b36e175e7 /runtime/src/host_cpu.cpp | |
| parent | e8e4b23d58c61917418fb25002392c32bb0a2110 (diff) | |
DDS previews batch: tests for the new formats, R9G9B9E5 through tex_export --png
- tests/test_dds_png_dx10.py: hand-built 2x2 texels with padded row pitch and a one-byte-short payload for
R9G9B9E5_SHAREDEXP (67), B5G6R5 (85), B5G5R5A1 (86), R8G8 SNORM/UINT/SINT (51/50/52),
R8 SNORM/UINT/SINT (63/62/64) and R10G10B10A2 TYPELESS/UINT (23/25, checked against UNORM 24);
these merged without tests.
- tools/tex_headers.py: list DXGI 67 in DXGI and FMT_INFO (4-byte element), so the indexer keeps such
textures and tex_export --png reaches dds_png's decoder instead of "unsupported format" (ecox982745's
finding on #2218). New tests in test_tex_export.py (index -> DDS -> PNG) and test_tex_headers.py.
- tests/test_tex_export.py: the "undecodable format" cases used DXGI 25, which #2320 now decodes; they use
R8G8B8A8_UINT (30) instead. FMT has 57 entries with 67.
- tools/dds_png.py, tools/tex_export.py: one docstring list of the decoded formats instead of the per-PR lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/host_cpu.cpp')
0 files changed, 0 insertions, 0 deletions