Commit Graph

2 Commits

Author SHA1 Message Date
1d7212e640 tools: make_amplify_dxil writes '?' for what a redirected stdout cannot encode
test_tool_stdout_encoding.py requires every tool's __main__ to set errors='replace'
on stdout, for a redirected stdout that is a strict ANSI code page under -I. The new
tool did not, so main failed that test on both Linux and Windows.

Same block as ab_control_flow.py and the other tools.
2026-12-01 04:53:35 +01:00
3b8b040c37 The amplification stage's code is built in: DXC's output of amplify.hlsl, written as Rust by tools/make_amplify_dxil.py
LEONIDA_MESH_AMPLIFY no longer needs a file: indirect/amplify_dxil.rs holds the stage's container (DXC as_6_6,
signed; the tool refuses an unsigned one, which D3D12 would not take), made by the new standard-library tool from
the Windows SDK's dxc or one named. LEONIDA_MESH_AMPLIFY_DXIL=<file> still takes another build of the stage, to
try one. The bytes are the runtime's own shader, not the title's; the file is text and the game-data check passes.

AI-assisted (Claude). Tested on RTX 4060 Ti 16 GB, driver 616.64: the tool's output is byte for byte the file the
in-game runs d276 to d279 loaded; cargo check with and without diagnostics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:37:59 -05:00