diff options
| author | sovljanskii <sovljanski04@gmail.com> | 2026-11-22 19:31:36 +0100 |
|---|---|---|
| committer | sovljanskii <sovljanski04@gmail.com> | 2026-11-22 23:02:49 +0100 |
| commit | bc79b55d1e8b6c13189447d3950d5f6a70f716ea (patch) | |
| tree | 37cca074d2b982240176d39dfc9b42e02960399e /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | 4c52ce27a6cf4af2bbf07a343ede39c5f1572b8d (diff) | |
first_light --camera: draw the model in perspective with a game VS that reads world and view-projection (TEST-523)
The default pair's VS applies no matrix, so first light was an orthographic fit. --camera uses
VS_TransformVT_e6ebb353_Wrapped instead. That VS reads a descriptor table at s9, whose V#s point at a world
matrix (table + 0x20) and a view-projection (table + 0x60, rows at 0x160). The tool builds a camera, writes
the matrices, V#s and table into vk_harness's heap (VKH_HEAP, VKH_SGPRS), and predicts the image with the
same float32 matrices, interpolating UV perspective-correctly. The manifest keeps the constants, so --check and
tests/test_first_light.py draw the same way. The output goes to <work>/first_light/camera, so the folder
d3d12_first_light_test reads is untouched.
Apple M4 (MoltenVK 1.4.2), the section 1 model at 128x128:
- coverage 6,851/16,384, with the centre, four probes and the clear corner as predicted;
- a 32x32 grid agrees on coverage 1,024/1,024 and on UV 428/428 within 2e-3;
- no constants, or a camera 2 degrees off, is rejected.
AI-assisted.
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions