code wiki / (root) / nx_craft_hair_probe_emit_t280.nx

nx_craft_hair_probe_emit_t280.nx source

↩ module page · 26 lines · 1306 B

1// Candidate page-fit composition. Existing shared page renders all scene and inspection controls. 2import "nx_game_page_integrated_t73.nx" 3import "nx_softbind.nx" 4const CE_NATIVE:*u8="nx_desktop_craft" 5const CE_EV_CAP:i64=8192 6func ce_cat(d:*u8,p:i64,s:*u8)->i64{ 7 var i:i64=0;while s[i]!=(0 as u8){d[p+i]=s[i];i=i+1};return p+i 8} 9func ce_catn(d:*u8,p:i64,v:i64)->i64{ 10 if v==0{d[p]=48 as u8;return p+1} 11 var t:i64=v;var n:i64=0;while t>0{t=t/10;n=n+1} 12 var k:i64=n;var u:i64=v;while k>0{d[p+k-1]=((u%10)+48) as u8;u=u/10;k=k-1};return p+n 13} 14func ce_stamp(t:*u8)->*u8{ 15 let o:*u8=sys_mmap(192);var i:i64=0 16 while t[i]!=(0 as u8){o[i]=t[i];i=i+1} 17 o[i]=32 as u8;o[i+1]=98 as u8;i=i+2 18 var m:i64=sys_now_realtime_sec();let d:*u8=sys_mmap(32);var k:i64=0 19 while m>0{d[k]=(48+(m%10)) as u8;m=m/10;k=k+1} 20 while k>0{k=k-1;o[i]=d[k];i=i+1};o[i]=0 as u8;return o 21} 22func ce_evidence(base_ctrl:*u8,out:*u8)->i64{ 23 var p:i64=ce_cat(out,0,base_ctrl) 24 p=ce_cat(out,p,"<p>Alpha diagnostic update - 2026-09-13: hair measurements now select the active renderer and include all three offset axes. WebGPU CPU uniform staging agreement is checked. These measurements do not qualify hair collision, clipping or visual realism. Worklog: hair-probe-review-t280 and hair-probe-live-t280.</p>" as *u8) 25 out[p]=0 as u8;return p 26}