code wiki / _hdl_build / nx_worldpipe_gate.nx

nx_worldpipe_gate.nx

buildroot/runtime/_hdl_build/nx_worldpipe_gate.nx

22578 B527 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_worldpipe_gate.nx -- ★R5 STAGED PROCGEN GATE: prove the pipeline is REAL, stage by stage, causally. T1 the six parameter fields exist and are DECORRELATED (independent knobs, not one noise renamed). T2 biome comes from the parameter VECTOR, not height: find same-height points with different biomes. T3 the spline is monotone (continents rise from the sea) and EROSION FLATTENS (measured on the relief formula). T4 the carver is CAUSAL: rivers exist with the stage on, vanish with it off (geometry, not paint). T5 features RESPECT biome (cacti in desert, spruce in snow, trees in forest/plains) with real counts. T6 determinism + seed variety (same seed = identical biome map; different seed = materially different). T7 spawn stage: valid gentle land, deterministic. T8 evidence: biome/continent map + 3D hero of the staged world -> knowledge/nx_worldpipe.png license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_png.nx nx_trimesh.nx nx_worldpipe.nx nx_worldpipe_gate.nx

imports: nx_syscalls.nxnx_png.nxnx_trimesh.nxnx_worldpipe.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main hw sys_write wp_init wp_hydro_bake sys_mmap wp_flow_h wp_param tm_noise3 tm_hash3 wp_height_core wp_spline wp_iabs tm_noise3 ↻ wp_clamp tm_hash3 ↻ wp_hyd_stamp pn sys_mmap ↻ sys_write ↻ wp_param ↻ wp_height wp_height_raw wp_param ↻ wp_height_params tm_noise3 ↻ wp_height_core ↻ wp_hyd_bed wp_biome wp_param ↻ wp_height_raw ↻ wp_hyd_bed ↻ wp_spline ↻ wp_height_params ↻ wp_set_carve wp_hyd_n wp_hyd_stat wp_height_raw ↻ wp_feature wp_height ↻

structs

none

consts

15const WG_MAGIC_1657: i64 = 1657
16const WG_MAGIC_2000: i64 = 2000
17const WG_MAGIC_1327: i64 = 1327
18const WG_MAGIC_16000: i64 = 16000
19const WG_MAGIC_8000: i64 = 8000
20const WG_MAGIC_2801: i64 = 2801
21const WG_MAGIC_3271: i64 = 3271
22const WG_MAGIC_7777: i64 = 7777
23const WG_MAGIC_3333: i64 = 3333
24const WG_MAGIC_4000: i64 = 4000
25const WG_MAGIC_1889: i64 = 1889
26const WG_MAGIC_1637: i64 = 1637
27const WG_MAGIC_19000: i64 = 19000
28const WG_MAGIC_9500: i64 = 9500
29const WG_MAGIC_2411: i64 = 2411
30const WG_MAGIC_1024: i64 = 1024
31const WG_MAGIC_65536: i64 = 65536
32const WG_MAGIC_5900: i64 = 5900
33const WG_T9_PAL: i64 = 4096
34const WG_T9_OFF: i64 = 2800
35const WG_T9_SOFF: i64 = 3100
36const WG_T9_SPAN: i64 = 9000
37const WG_T9_HALF: i64 = 4500
38const WG_T9_PA: i64 = 1637
39const WG_T9_PB: i64 = 2411
45const MAPW: i64 = 360
46const HERW: i64 = 560
47const GH: i64 = 360

functions

41func 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
42func pn(v: i64) -> i64 { let b: *u8=sys_mmap(32) as *u8; var x: i64=v; var ng: i64=0; if x<0{ng=1;x=0-x} var i: i64=31; if x==0{b[i]=48 as u8;i=i-1} while x>0{b[i]=(48+x%10) as u8;x=x/10;i=i-1} if ng==1{b[i]=45 as u8;i=i-1} sys_write(1,(b as i64+i+1) as *u8,31-i); return 0 }
called by 1: main calls 2: sys_mmapsys_write
43func clearfb(fb: *i64, n: i64, c: i64) -> i64 { var i: i64=0; while i<n { fb[i]=c; i=i+1 } return 0 }
called by 1: main
49func main() -> i64