nx_gfx_research.nx source
↩ module page · 31 lines · 2025 B
1// nx_gfx_research.nx -- THIN structured GRAPHICS/EXECUTION research source organ (ground the better-than-DirectX
2// sovereign render pipeline). COMPOSES nx_research_engine; sources under SECTIONS, NO copy-pasted loop. Supersedes
3// nx_gfx_research_fetch. expect_exit: 0 license_tier: ORIGINAL
4import "nx_research_engine.nx"
5const K_MAGIC_8388608: i64 = 8388608
6
7func main() -> i64 {
8 let store: *TrustStore = rf_init()
9 if (store as i64) == 0 { rf_puts("gfx: trust store load failed\n" as *u8); return 1 }
10 rf_puts("CA roots="); rf_putn(trust_store_count(store)); rf_puts(" -- GRAPHICS/EXECUTION research -> Library\n" as *u8)
11 let cap: i64 = K_MAGIC_8388608
12 let out: *u8 = sys_mmap(cap)
13 var ok: i64 = 0
14
15 rf_section("the incumbent graphics APIs to exceed" as *u8)
16 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/DirectX" as *u8, "gx_directx" as *u8, store, out, cap)
17 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Vulkan" as *u8, "gx_vulkan" as *u8, store, out, cap)
18 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Metal_(API)" as *u8, "gx_metal" as *u8, store, out, cap)
19 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/OpenGL" as *u8, "gx_opengl" as *u8, store, out, cap)
20
21 rf_section("the rendering pipeline + rasterisation + GPU (what we build sovereignly)" as *u8)
22 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Graphics_pipeline" as *u8, "gx_pipeline" as *u8, store, out, cap)
23 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Rasterisation" as *u8, "gx_raster" as *u8, store, out, cap)
24 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Graphics_processing_unit" as *u8, "gx_gpu" as *u8, store, out, cap)
25
26 rf_section("execution depth (native code / JIT)" as *u8)
27 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Just-in-time_compilation" as *u8, "gx_jit" as *u8, store, out, cap)
28
29 rf_puts("GFX BANKED: "); rf_putn(ok); rf_puts(" / 8 (run nx_library_harvest_v2 to index)\n" as *u8)
30 return 0
31}