nx_steamgfx_research.nx source
↩ module page · 37 lines · 2943 B
1// nx_steamgfx_research.nx -- SCOPE THE REAL BAR with the nishi researcher: "swap our sovereign graphics stack in
2// to PLAY A REAL STEAM GAME WITHOUT DirectX." Operator 2026-07-02: the "exceeds DirectX on submission-path-depth"
3// claim is bullshit -- the real test is running an actual Steam game on our stack, and I never scoped it. This banks
4// the real requirement surface: what a Steam game actually calls (Direct3D/DXGI/Win32), how it runs WITHOUT native
5// DirectX today (Wine/Proton + DXVK/vkd3d translating D3D->Vulkan), and the Vulkan/SPIR-V/WDDM target our sovereign
6// path must actually EXECUTE (not just encode). Composes nx_research_engine (sovereign TLS). ORIGINAL. expect_exit:0
7import "nx_research_engine.nx"
8const K_MAGIC_8388608: i64 = 8388608
9
10func main() -> i64 {
11 let store: *TrustStore = rf_init()
12 if (store as i64) == 0 { rf_puts("sg: trust store load failed\n" as *u8); return 1 }
13 rf_puts("CA roots="); rf_putn(trust_store_count(store)); rf_puts(" -- REAL BAR: run a Steam game WITHOUT DirectX -> Library\n" as *u8)
14 let cap: i64 = K_MAGIC_8388608
15 let out: *u8 = sys_mmap(cap)
16 var ok: i64 = 0
17
18 rf_section("what a Windows/Steam game actually calls (the API surface to REPLACE)" as *u8)
19 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/DirectX" as *u8, "sg_directx" as *u8, store, out, cap)
20 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Direct3D" as *u8, "sg_direct3d" as *u8, store, out, cap)
21 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Windows_API" as *u8, "sg_win32" as *u8, store, out, cap)
22
23 rf_section("how Steam games run WITHOUT native DirectX TODAY (the proven translation path)" as *u8)
24 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Wine_(software)" as *u8, "sg_wine" as *u8, store, out, cap)
25 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Proton_(software)" as *u8, "sg_proton" as *u8, store, out, cap)
26 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Steam_(service)" as *u8, "sg_steam" as *u8, store, out, cap)
27
28 rf_section("the sovereign target we must actually EXECUTE (encode is not enough)" as *u8)
29 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Vulkan" as *u8, "sg_vulkan" as *u8, store, out, cap)
30 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Standard_Portable_Intermediate_Representation" as *u8, "sg_spirv" as *u8, store, out, cap)
31 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/OpenGL" as *u8, "sg_opengl" as *u8, store, out, cap)
32 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Windows_Display_Driver_Model" as *u8, "sg_wddm" as *u8, store, out, cap)
33 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Graphics_pipeline" as *u8, "sg_pipeline" as *u8, store, out, cap)
34
35 rf_puts("SG BANKED: "); rf_putn(ok); rf_puts(" / 11 (run nx_library_harvest_v2 to index) -- now the bar is RESEARCHED, not asserted\n" as *u8)
36 return 0
37}