tools/nvn_coverage.py builds a local index of public declarations, runtime handlers and possible Vulkan call
paths. It retains signatures, names and locations, with no implementation bodies. Give it --reference HEADER,
--out REPORT.json and --cache CACHE.json outside the checkout. --jobs N selects the worker processes and
defaults to the available CPU count. Unchanged files reuse their cached index. Repeated --log LOG arguments
distinguish resolved functions from unimplemented functions actually called.
The index is lexical. A path to Vulkan does not establish equivalent rendering, and command recording defers its
work to replay. --contracts FILE.json --emit-bindings PROPOSAL.hook can generate hook declarations from a JSON
list of reviewed declarations. It checks the public ABI against an existing C handler, rejecting missing handlers,
ambiguous definitions and incompatible arguments or results. It does not generate implementation bodies or modify
the runtime. Hookgen supplies the actual register adapters after the declarations are reviewed and installed.
API 53.312's measured object footprints fit the runtime's layouts, and format 15 control sections render through the loader. So do the object sizes and alignments of 53.5, 53.13, 53.105 and 53.311 to 53.314 (measured against their games' drivers); the drivers before 53.209 give a STENCIL8 texture a ZCull save area without its zcull flag, as for depth. Its sampler writer reaches 0x60 bytes, beyond the public header's 0x30 reserved bytes, so the header's size alone is not a safe bound for a shadow driver's writes. The command buffer's command and control size queries report the last ranges the game supplied. Runtime lending does not enlarge the advertised guest capacity, and the control range stays free because direct recording needs no driver control bookkeeping.
The SDK exports nvnBootstrapLoader, which returns a guest function pointer for an NVN function name. A trace that
wrapped the resolvers (the nvn_trace setting, deprecated now) counted the calls to each function they resolved.
Its boot samples resolved about 470 (game A) and 530 (game B) names and called about a third of them. The frequently
called shared functions are buffer-address and texture-handle lookups, texture binds, blend and vertex state, and
command-buffer operations. Counts vary between runs with the same frame limit.
Made from docs/layers/gpu/nvn.md at 69237645142c. GPL-3.0-or-later.