code wiki / _hdl_build / nx_gfx_bloom_gate.nx

nx_gfx_bloom_gate.nx

buildroot/runtime/_hdl_build/nx_gfx_bloom_gate.nx

4362 B70 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic gfx
docsdependenciesstructsconstsfunctions

dependencies 5 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_gfx_iso.nx nx_png.nx nx_syscalls.nx nx_gfx_bloom_gate.nx

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

main gw sys_write sys_mmap build_dungeon gx_fill gx_rgb gx_iso_tile_tex gx_hash gx_px gx_shade gx_rgb ↻ gx_cr gx_cg gx_cb gx_isox gx_isoy gx_iso_cube_tex gx_shade ↻ gx_hash ↻ gx_px ↻ gx_isc_f gx_iso_tile_tex ↻ gx_sprite_humanoid gx_rgb ↻ gx_shade ↻ gx_mix gx_cr ↻ gx_cg ↻ gx_cb ↻ gx_rgb ↻ gx_ellipse_blend gx_blend gx_mix ↻ gx_vgrad gx_hspan gx_mix ↻ gx_px ↻ gx_hspan ↻ gx_ellipse

structs

none

consts

none

functions

12func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
15func build_dungeon(fb: *i64, W: i64, H: i64, ox: i64, oy: i64) -> i64
39func 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 }
called by 1: main calls 3: gx_crgx_cggx_cb
40func 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 }
42func main() -> i64