code wiki / _hdl_build / nx_gfx_bloom_gate.nx
nx_gfx_bloom_gate.nx
buildroot/runtime/_hdl_build/nx_gfx_bloom_gate.nx
dependencies 5 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_gfx_iso.nxnx_png.nxnx_syscalls.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 grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 15 | func build_dungeon(fb: *i64, W: i64, H: i64, ox: i64, oy: i64) -> i64 |
| 39 | func total_lum(fb: *i64, W: i64, H: i64) -> i64 { var s: i64=0; var p: i64=0; while p<W*H { let c: i64=fb[p]; s=s+gx_cr(c)+gx_cg(c)+gx_cb(c); p=p+1 } return s } |
| 40 | func maxchan(fb: *i64, W: i64, H: i64) -> i64 { var m: i64=0; var p: i64=0; while p<W*H { let c: i64=fb[p]; if gx_cr(c)>m{m=gx_cr(c)} if gx_cg(c)>m{m=gx_cg(c)} if gx_cb(c)>m{m=gx_cb(c)} p=p+1 } return m } |
| 42 | func main() -> i64 |