upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorRafael <rafaelalvesp2005@gmail.com>2026-11-22 12:25:55 -0300
committerRafael <rafaelalvesp2005@gmail.com>2026-11-22 12:36:51 -0300
commit6c73872cad83fd6166d5a7e37d6918b995ac50db (patch)
tree793b062a1686fbed964917d5616504eb83ea3f77 /runtime/src/pe_loader.cpp
parente590a591cd6d76a33df19ca79384ff19ab556e15 (diff)
first_light: draw the real model through the D3D12 layer
d3d12_first_light (package-gated by LEONIDA_FIRST_LIGHT_DIR, exit 77 when unset) draws the mesh and translated VS/PS that tools/first_light.py wrote through the Xbox-ABI device proxy: CreateGraphicsPipelineState gets the game's own containers and finds both stages by FSSM hash, the input layout feeds POSITION/TEXCOORD, DEFAULT vertex/index buffers, one DrawIndexedInstanced, CopyTextureRegion readback. It checks vk_harness's oracle (coverage window, clear corner, centre UV) with the rows flipped for the y-up viewport, and compares every pixel with vk_harness's image.raw. first_light.py now also writes vs.dxbc, ps.dxbc and index.json (the translator entries keyed vs/ps) to the output folder. RTX 3060, driver 616.64: 12,804/16,384 covered, centre (0.49756, 0.49634, 0, 1), as vk_harness; 16,383 pixels bit-exact and one one f16 step apart (the PS exports with v_cvt_pkrtz_f16_f32; vk_harness with the mesh mirrored in y matches the D3D12 image bit for bit). Clean under LEONIDA_VK_VALIDATION=1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions