nx_ir_cast_identity_t206.nx
buildroot/runtime/nx_ir_cast_identity_t206.nx
dependencies 3 imports · 0 importers
imports: nx_wgsl.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)->i64 |
| 12 | func main()->i64{let v:*i64=sir_new();shsrc_cast_vs(v);let vr:i64=iq_measure(v,STAGE_VERTEX,"canonical-cast-vertex");let f:*i64=sir_new();shsrc_cast_fs(f);let fr:i64=iq_measure(f,STAGE_FRAGMENT,"canonical-cast-fragment");return vr+fr} calls 1: iq_measure |