nx_cast_aperture_artifact_gate_t207.nx
buildroot/runtime/nx_cast_aperture_artifact_gate_t207.nx
dependencies 3 imports · 0 importers
imports: nx_wgsl_cast_material_t181.nxnx_sha256.nxnx_fs_create_lib.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
| 3 | func iq_sha(b:*u8,n:i64)->i64{if n<1{return 0};let digest:*u8=sys_mmap(32);let hex:*u8=sys_mmap(65);sha256_digest(b,n,digest);let digits:*u8="0123456789abcdef";var i:i64=0;while i<32{let v:i64=digest[i] as i64;hex[i*2]=digits[v/16];hex[i*2+1]=digits[v%16];i=i+1};hex[64]=0 as u8;fsx_puts(" SHA256=");fsx_puts(hex);return 0} |
| 5 | func iq_measure(m:*i64,stage:i64,label:*u8,gpath:*u8,wpath:*u8)->i64 |
| 13 | func iq_save(path:*u8,b:*u8,n:i64)->i64{if n<1{return 0};let rc:i64=fxc_create(path,b,n);if rc==n{return 1};if rc!=FXC_EXISTS{return 0};let ln:*i64=sys_mmap(8) as *i64;let old:*u8=sys_read_file(path,ln);if (old as i64)==0||ln[0]!=n{return 0};var i:i64=0;while i<n{if old[i]!=b[i]{return 0};i=i+1};return 1} |
| 14 | func main()->i64{let v:*i64=sir_new();shsrc_cast_vs(v);let a:i64=iq_measure(v,STAGE_VERTEX,"eye-aligned-cast-vertex","/tmp/eye-aligned-cast-vertex-t207.glsl","/tmp/eye-aligned-cast-vertex-t207.wgsl");let f:*i64=sir_new();shsrc_cast_fs(f);let b:i64=iq_measure(f,STAGE_FRAGMENT,"eye-aligned-cast-fragment","/tmp/eye-aligned-cast-fragment-t207.glsl","/tmp/eye-aligned-cast-fragment-t207.wgsl");return a+b} calls 1: iq_measure |