| Kind | Layout |
|---|---|
| Graphics | a 0x30-byte wrapper with magic 0x12345678, then the Maxwell shader program header (SPH) and instructions |
| Bare shader file | magic 0x19866891 at the start of a file one game ships, with its SPH at 0xB50 and no wrapper |
| Compute | magic 0x12345679 with the declared code size at +4, 0x100 bytes before the code. The QMD's program address is the code, so it is the NVN candidate + 0x100. Local workgroup size and shared memory come from the NVN control object |
0x190 put it at offset 0x200, and 0x210 at 0x300. Both matched the Maxwell bank 1 bindings.
deko3d's dk_shader.cpp does the same. For
compute, the offset comes from the control metadata.Made from docs/layers/gpu/nvn.md at 69237645142c. GPL-3.0-or-later.