mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 15:59:59 -04:00
Mesh emulation: task records hold payloads of up to 776 words.
Since 0.6.0 the translator sizes a task payload 32 bytes past the program header's size, for the header before the
program's data (b6b76b7): Ocarina's foliage task, 3072 bytes, now declares 3104. A record held 768 payload words, so
the emulation refused those programs ("payload too large") and the foliage went undrawn. Records are 780 words.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
#define MESH_EMU_DWORDS 16u
|
||||
#define MESH_EMU_DRECS 4096u
|
||||
#define MESH_EMU_TOFF (MESH_EMU_DOFF + MESH_EMU_DRECS * MESH_EMU_DWORDS * 4u)
|
||||
#define MESH_EMU_TWORDS 780u // 1 + payloads of up to 776 words (3072 bytes and the 32 the
|
||||
// translator adds for the payload header since 0.6.0), padded
|
||||
// task records: as many as the push constants say (the replay sizes them, NX2NAVI_MESH_EMU_TASKS); the index area
|
||||
// follows them
|
||||
// Push constants of every emulation stage (compute and the vertex shader), 32 bytes:
|
||||
|
||||
Reference in New Issue
Block a user