code wiki / _hdl_build / nx_donor_native.nx
nx_donor_native.nx
buildroot/runtime/_hdl_build/nx_donor_native.nx
about
nx_donor_native.nx -- FIRST-BIT-NATIVE render of a DONOR asset (operator law: everything on nishi os/browser/lang until forced third-party) MOTION VISUAL for the benchmark pages: load our .glb
with OUR loader, rasterize K turntable frames with OUR renderer, encode with OUR APNG writer.
No host GL, no third-party code anywhere in the chain: model -> render -> encode is all nishi,
and the output plays in any browser (APNG IS a PNG) including the Nishi browser's own decoders.
Also writes frame 0 as the native STILL. Composes nx_gltf_load + nx_trimesh + nx_png + nx_apng_write.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_png.nxnx_trimesh.nxnx_gltf_load.nxnx_apng_write.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const NT_MAGIC_6283: i64 = 6283 |
| 13 | const NT_MAGIC_2600: i64 = 2600 |
| 16 | const NT_W: i64 = 240 |
| 17 | const NT_H: i64 = 368 |
| 18 | const NT_FRAMES: i64 = 20 |
| 19 | const NT_BG: i64 = 24 + 26*256 + 34*65536 |
functions
| 21 | func nt_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 22 | func nt_num(v: i64) -> i64 |
| 31 | func main() -> i64 |