code wiki / _hdl_build / nx_swgpu_gate.nx
nx_swgpu_gate.nx
buildroot/runtime/_hdl_build/nx_swgpu_gate.nx
about
nx_swgpu_gate.nx -- gate for the SOVEREIGN SOFTWARE GPU rendering a 3D CHARACTER (Path A R5 preview).
T1 the HUMANOID renders: a solid block of skin pixels at 512x384
T2 PER-PIXEL shading gradient: wide luminance range (lit -> shadow) = real shading, not flat
T3 FULL FIGURE (not a blob): skin pixels present in the TOP third (head) AND BOTTOM third (feet) AND middle
T4 determinism: two renders byte-identical (integer pipeline, VM-vettable)
T5 hi-res 512x384 + PNG knowledge/nx_swchar.png (the eyeball) + a lone sphere PNG nx_swgpu.png
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_png.nxnx_swgpu.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
| none |
functions
| 12 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 13 | func pn(v: i64) -> i64 |
| 25 | func is_skin(px: i64) -> i64 { let r: i64 = px & 255; let b: i64 = (px >> 16) & 255; if r >= b { return 1 } return 0 } called by 1: main |
| 26 | func lum(px: i64) -> i64 { return (px & 255) + ((px >> 8) & 255) + ((px >> 16) & 255) } called by 1: main |
| 28 | func main() -> i64 |