upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorbbareth <179921368+BBareth@users.noreply.github.com>2026-11-22 02:00:01 +0100
committerbbareth <179921368+BBareth@users.noreply.github.com>2026-11-22 02:00:01 +0100
commit96ec04967a61cbd4a36bdb1bad972641e111da90 (patch)
tree4b1e4d584e9b9afc7a707bd1fe5789503fb5097d /runtime/test/loader_test.cpp
parent91b36cf86cb92a95836eed8af73abc0671a61e31 (diff)
rdna2spirv.py: check --limit and --shard before translating anything
`files[: a.limit] if a.limit else files` read --limit 0 as "no limit" and translated the whole corpus, and a negative --limit dropped the last shaders instead of being refused. --shard was split and used unchecked: 0/0 ended in "slice step cannot be zero", 9/8 translated nothing and wrote an empty index.part9.json that --merge then reads, and anything that isn't i/n was a traceback. Both are now argparse types: --limit must be at least 1, and --shard must be i/n with n >= 1 and 0 <= i < n. A bad value is a usage error (exit 2) before --out is created. The translation itself is unchanged, and make_game.py's own "--shard i/jobs" values are all valid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions