code wiki / _hdl_build / nx_swgpu_showcase.nx
nx_swgpu_showcase.nx
buildroot/runtime/_hdl_build/nx_swgpu_showcase.nx
about
nx_swgpu_showcase.nx -- SHOW the sovereign software GPU (operator 2026-07-04: "show me where i can see
this"). Renders a TURNTABLE of the SMOOTH-UNION SDF body (nx_sdfrender: one continuous raymarched surface,
per-pixel lit), bakes each yaw frame to a PNG, base64s it, and emits a SELF-CONTAINED page (zero libs, our
own JS cycles the frames = a rotating continuous 3D character). Proves: a continuous, per-pixel-lit 3D body
rendered ENTIRELY by our own software GPU (no WebGL, no library), shown live. license_tier: ORIGINAL expect_exit: 0
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_png.nxnx_base64.nxnx_sdfrender_mt.nxnx_makeup.nxnx_jpeg_ascii.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 K_MAGIC_1608: i64 = 1608 |
| 13 | const K_MAGIC_1360: i64 = 1360 |
| 14 | const K_MAGIC_1330: i64 = 1330 |
| 15 | const K_MAGIC_1024: i64 = 1024 |
functions
| 17 | func hw(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 20 | func emit_frame(base: i64, fd: i64, tmp: *u8) -> i64 |
| 34 | func main() -> i64 |