upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/tex_export.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tex_export.py')
-rw-r--r--tools/tex_export.py8
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