code wiki / _hdl_build / nx_skin_sun_capture_t127.nx

nx_skin_sun_capture_t127.nx source

↩ module page · 14 lines · 619 B

1import "nx_game_shader_backend_selected_t55.nx" 2const CAPTURE_BYTES:i64=65536 3const CAPTURE_TIMEOUT_MS:i64=30000 4func main()->i64 { 5 let b:*u8=sys_mmap(CAPTURE_BYTES) 6 var n:i64=0 7 let rc:i64=gsb_capture_selected("/volume1/homes/elderwesto/nishihost/buildroot/_build/nx_wgsl.sov.elf" as *u8,"c17fba9fbd878958c7d7f2d5671bd20f4395e4a2754dd7ee492a7d7a0bc4285c" as *u8,1257240,"cast" as *u8,b,CAPTURE_BYTES,&n,CAPTURE_TIMEOUT_MS) 8 if rc!=0 {return 1} 9 if gsb_failed!=0 {return 2} 10 if n<=0 {return 3} 11 let wrote:i64=fsx_write("knowledge/gates/skin-sun-authored-t129-cast.txt" as *u8,b,n) 12 if wrote!=n {return 4} 13 return 0 14}