code wiki / _hdl_build / nx_swgpu_gate.nx

nx_swgpu_gate.nx

buildroot/runtime/_hdl_build/nx_swgpu_gate.nx

4761 B96 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic swgpu
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_png.nx nx_swgpu.nx nx_swgpu_gate.nx

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

main sys_mmap swgpu_bytes sg_humanoid sg_reset sg_add_ellipsoid it_sin4096 it_cos4096 it_sin4096 ↻ sg_isqrt sg_project it_cos4096 ↻ it_sin4096 ↻ sg_render sg_raster sg_fb sg_zb sg_imax sg_imin sg_isqrt ↻ sg_tonemap fb_off ww hh is_skin lum hw sys_write pn sys_mmap ↻ sys_write ↻ write_png sys_mmap ↻ png_g png_paeth png_sabs dfe_compress sys_mmap ↻ dfe_fill_tables dfe_deflate

structs

none

consts

none

functions

12func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
13func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
25func 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
26func lum(px: i64) -> i64 { return (px & 255) + ((px >> 8) & 255) + ((px >> 16) & 255) }
called by 1: main
28func main() -> i64