diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 16:55:04 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 16:55:04 -0500 |
| commit | df92abca8ee2a8f9093efea7fcaa4dadc3ddaebc (patch) | |
| tree | 97ef8f95544fe263049d3f7360823f16100de209 /tools/tex_export.py | |
| parent | 49a0b69fcdb80db1f2a44ce7ca0ab8dfdec1e403 (diff) | |
| parent | e5a7c8942678b323f655939c81f5d8855d20c248 (diff) | |
Merge main e5a7c8942 into shadow-aliased-guard (#1867)
One conflict, runtime/README.md: this branch rewrote the LEONIDA_SHADOW_ALIAS_MS
row, main (#2163) added the LEONIDA_SHADOW_KEEP row after it. Both rows kept;
the keep row's "aliased" now reads "aliased while they can't be guarded at every
address", since aliased pages are no longer copied without a sign of a write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/tex_export.py')
| -rw-r--r-- | tools/tex_export.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/tex_export.py b/tools/tex_export.py index e0630805d..70eb0c3ef 100644 --- a/tools/tex_export.py +++ b/tools/tex_export.py | |||
| @@ -12,9 +12,11 @@ For each texture: | |||
| 12 | otherwise on raw element bytes) | 12 | otherwise on raw element bytes) |
| 13 | - writes <out>/<archive>/<cpu blob>_<q index>_<WxH>_<format>.dds and records the choice in export_log.json, | 13 | - writes <out>/<archive>/<cpu blob>_<q index>_<WxH>_<format>.dds and records the choice in export_log.json, |
| 14 | with "heuristic": true whenever two distinct placements fitted (the pick is a score, not a verified layout) | 14 | with "heuristic": true whenever two distinct placements fitted (the pick is a score, not a verified layout) |
| 15 | - with --png, also writes the same path with .png for every texture tools/dds_png.py can decode (BC1-BC5, BC7 | 15 | - with --png, also writes the same path with .png for every texture tools/dds_png.py can decode (BC1-BC5, BC7, |
| 16 | and 8-bit RGBA/BGRA, R10G10B10A2_UNORM or R11G11B10_FLOAT, with no sRGB transfer; BC5 blue is a reconstructed normal Z; | 16 | 8-bit RGBA/BGRA, R8 and R8G8 UNORM/SNORM/UINT/SINT, R16_UNORM, R10G10B10A2_UNORM/UINT, R11G11B10_FLOAT, |
| 17 | R16_FLOAT, R32_FLOAT and R16G16B16A16_FLOAT clamped to [0, 1], NaN as 0). | 17 | R9G9B9E5_SHAREDEXP and R16G16B16A16_UNORM/SNORM, with no sRGB transfer; BC5 blue is a reconstructed normal Z; |
| 18 | SNORM maps [-1, 1] to [0, 255], SINT is offset by 128; R9G9B9E5_SHAREDEXP, R16_FLOAT, R32_FLOAT and | ||
| 19 | R16G16B16A16_FLOAT clamp to [0, 1], with NaN as 0 for formats that can encode it). | ||
| 18 | The rest (including BC6H) keep their | 20 | The rest (including BC6H) keep their |
| 19 | DDS only and are counted as "png unsupported". A PNG that fails to decode or write is counted as | 21 | DDS only and are counted as "png unsupported". A PNG that fails to decode or write is counted as |
| 20 | "png error:<Type>" and its DDS stays; neither changes the exit code | 22 | "png error:<Type>" and its DDS stays; neither changes the exit code |