code wiki / (root) / nx_sdfrender_mt.nx

nx_sdfrender_mt.nx

buildroot/runtime/nx_sdfrender_mt.nx

2812 B63 linesdepth 7pulls 11 transitivereach 9 importersview sourcekind librarytopic sdfrender
docsdependenciesstructsconstsfunctions

about

nx_sdfrender_mt.nx -- R1c of the sovereign software-GPU ladder: the SDF renderer fanned out across CPU cores on nx_thread_pool (the 2026-07-07 threading-toolchain close applied to a real organ). ADDITIVE lane: nx_sdfrender itself stays single-threaded + wasm-safe; only THIS organ pulls in threads (native surfaces -- showcase, gates, asset bakers). DETERMINISM LAW: a row task writes ONLY its own fb rows and reads the part arena read-only, so the threaded frame is BYTE-IDENTICAL to sdf_render under ANY scheduling. Gate-proven (nx_sdfrender_mt_gate T1/T2/T5), not asserted. license_tier: ORIGINAL

dependencies 2 imports · 9 importers

nx_sdfrender.nx nx_thread_pool.nx nx_sdfrender_mt.nx nx_char_groom_gate.nx nx_face_project_gate.nx nx_face_style_gate.nx nx_faceanat_gate.nx nx_faceanat_morph_gate.nx nx_faceanat_stereo_gate.nx nx_gsplat_photofit_gate.nx nx_sdfrender_mt_gate.nx nx_swgpu_showcase.nx

imports: nx_sdfrender.nxnx_thread_pool.nx

imported by: nx_char_groom_gate.nxnx_face_project_gate.nxnx_face_style_gate.nxnx_faceanat_gate.nxnx_faceanat_morph_gate.nxnx_faceanat_stereo_gate.nxnx_gsplat_photofit_gate.nxnx_sdfrender_mt_gate.nxnx_swgpu_showcase.nx

structs

12struct SdfMtJob

consts

22const SDFMT_JOB_BYTES: i64 = 64

functions

24func _sdfmt_task(ctx: i64) -> i64
calls 1: sdf_render_rows
33func sdfmt_render_pool(pool: *NxThreadPool, base: i64, yaw: i64, camz_units: i64, skin_r: i64, skin_g: i64, skin_b: i64) -> i64
58func sdfmt_render(base: i64, yaw: i64, camz_units: i64, skin_r: i64, skin_g: i64, skin_b: i64, nworkers: i64) -> i64