diff options
| author | MoonEyes <ducoinbenjamin@yahoo.fr> | 2026-11-30 11:04:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-30 11:04:41 +0100 |
| commit | 1b0f657f3d6398a9dce576a4ebeee6fb33711256 (patch) | |
| tree | e09116693114c1d0797504534b2cb8ac8a49cb97 /docs | |
| parent | a4300e3eb0424c07910451464e642a9ae4a5825a (diff) | |
| parent | 1786d7ad5b42aa3c010e16401ca8a6622cca1406 (diff) | |
Merge pull request #2655 from OreoFR/docs/gdk-public-pages
docs: which imported GDK names have a public page (DOCS-GDK-PUBLIC-PAGES)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/README.md | 2 | ||||
| -rw-r--r-- | docs/gdk_public_reference.md | 49 |
2 files changed, 48 insertions, 3 deletions
diff --git a/docs/README.md b/docs/README.md index 40e9ad264..5691455b5 100644 --- a/docs/README.md +++ b/docs/README.md | |||
| @@ -87,7 +87,7 @@ method, scope and caveats. No game data is included. | |||
| 87 | | [d3d12_command_objects.md](d3d12_command_objects.md) | Measured command queue/list/fence/`PresentX` surface; verified vs prior art vs open. | | 87 | | [d3d12_command_objects.md](d3d12_command_objects.md) | Measured command queue/list/fence/`PresentX` surface; verified vs prior art vs open. | |
| 88 | | [xbox_d3d12_xs.md](xbox_d3d12_xs.md) | The `d3d12_xs` graphics ABI quoted from Microsoft's public GDK reference: root signatures, state objects, DXIL libraries, hit groups, shader cache sessions; which pages are missing or NDA-gated. | | 88 | | [xbox_d3d12_xs.md](xbox_d3d12_xs.md) | The `d3d12_xs` graphics ABI quoted from Microsoft's public GDK reference: root signatures, state objects, DXIL libraries, hit groups, shader cache sessions; which pages are missing or NDA-gated. | |
| 89 | | [runtime_imports.md](runtime_imports.md) | The 16 shipped modules' measured imports and shim/host/unimplemented split. | | 89 | | [runtime_imports.md](runtime_imports.md) | The 16 shipped modules' measured imports and shim/host/unimplemented split. | |
| 90 | | [gdk_public_reference.md](gdk_public_reference.md) | How to use the public PC GDK reference and headers to write shims for the imported console APIs: what it covers (XGameRuntime, XTaskQueue, XUser, XStore, XGameSave, GameInput), what it does not (`d3d12_xs`, NDA), the 4-step method and the lines not to cross. A convention, not a measurement. | | 90 | | [gdk_public_reference.md](gdk_public_reference.md) | How to use the public PC GDK reference and headers to write shims for the imported console APIs: what it covers (XGameRuntime, XTaskQueue, XUser, XStore, XGameSave, GameInput), what it does not (`d3d12_xs`, NDA), the 4-step method, a measured table of which imported names have a public page (2026-11-29) and the lines not to cross. | |
| 91 | | [linux_proton.md](linux_proton.md) | Building and booting under Proton/Wine on Linux, one bounded game run with `scripts/run_game_wine.sh`, a healthy boot's timeline, and the test report of one Linux and two Windows machines | | 91 | | [linux_proton.md](linux_proton.md) | Building and booting under Proton/Wine on Linux, one bounded game run with `scripts/run_game_wine.sh`, a healthy boot's timeline, and the test report of one Linux and two Windows machines | |
| 92 | | [xmem_exe_calls.md](xmem_exe_calls.md) | How the retail executable calls `xmem.dll`: call sites and constant arguments per import (`tools/import_call_sites.py`), the 23 `XMemVirtualAlloc` calls that all pass an attribute word, and the inferred shape of the physical-page family. | | 92 | | [xmem_exe_calls.md](xmem_exe_calls.md) | How the retail executable calls `xmem.dll`: call sites and constant arguments per import (`tools/import_call_sites.py`), the 23 `XMemVirtualAlloc` calls that all pass an attribute word, and the inferred shape of the physical-page family. | |
| 93 | | [exe_fail_fast.md](exe_fail_fast.md) | Where the retail executable stops itself (`int3`) on an import's result: 78 sites over 27 imports (`tools/import_fail_fast.py`), grouped by how `main` binds each import (all 13 non-host fatal-checked imports now bind to shims; 0 unbound). | | 93 | | [exe_fail_fast.md](exe_fail_fast.md) | Where the retail executable stops itself (`int3`) on an import's result: 78 sites over 27 imports (`tools/import_fail_fast.py`), grouped by how `main` binds each import (all 13 non-host fatal-checked imports now bind to shims; 0 unbound). | |
diff --git a/docs/gdk_public_reference.md b/docs/gdk_public_reference.md index 08efd95cd..3aa9d9aa5 100644 --- a/docs/gdk_public_reference.md +++ b/docs/gdk_public_reference.md | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | # Using the public GDK to write shims | 1 | # Using the public GDK to write shims |
| 2 | 2 | ||
| 3 | How to use Microsoft's **public** GDK documentation and headers to implement the console APIs the game imports, | 3 | How to use Microsoft's **public** GDK documentation and headers to implement the console APIs the game imports, |
| 4 | without copying Microsoft's files and without touching anything under NDA. A convention for contributors, not a | 4 | without copying Microsoft's files and without touching anything under NDA. A convention for contributors; only the |
| 5 | measurement. | 5 | table of public pages is a measurement. |
| 6 | 6 | ||
| 7 | ## The rule in one line | 7 | ## The rule in one line |
| 8 | 8 | ||
| @@ -45,6 +45,51 @@ signatures and struct layouts. Never commit GDK files, and never use the console | |||
| 45 | path: claim it in the coordination issue, open a pull request with a test that fails on `main` and passes with | 45 | path: claim it in the coordination issue, open a pull request with a test that fails on `main` and passes with |
| 46 | it ([CONTRIBUTING.md](../CONTRIBUTING.md)). | 46 | it ([CONTRIBUTING.md](../CONTRIBUTING.md)). |
| 47 | 47 | ||
| 48 | ## Public pages by family | ||
| 49 | |||
| 50 | MEASURED on 2026-11-29 from a Mac, by HTTP only; the page contents were not read. Each GDK name in | ||
| 51 | [runtime_imports.md](runtime_imports.md) (the names in backticks, not the whole import table) was looked up in two | ||
| 52 | places: the public index at `https://docs.xbox.com/_llms/en/apis/gdk-apis/system-api-reference.txt` (and its XStore | ||
| 53 | part), then directly at `https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/<area>/<family>/<kind>/<name>` | ||
| 54 | (kinds `functions`, `structs`, `enums`, `handles`). A name counts as found when the page answers 200 with that name in | ||
| 55 | its title. The index is incomplete: it leaves out most of XMem and all of XNetworking, whose pages do exist on | ||
| 56 | Microsoft Learn. | ||
| 57 | |||
| 58 | | Family | Contents page | Found | Not found | | ||
| 59 | |---|---|---|---| | ||
| 60 | | XAccessibility | [xaccessibility](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xaccessibility/xaccessibility_members) | 2 | | | ||
| 61 | | XAppCapture | [xappcapture](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xappcapture/xappcapture_members) | 1 | | | ||
| 62 | | XAsync | [xasync](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xasync/xasync_members) | 2 | | | ||
| 63 | | XAsyncProvider | [xasyncprovider](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xasyncprovider/xasyncprovider_members) | 3 | `XAsyncBeginAlloc` | | ||
| 64 | | XDisplay | [xdisplay](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xdisplay/xdisplay_members) | 3 | | | ||
| 65 | | XError | [xerror](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xerror/xerror_members) | 1 | `XErrorReport` | | ||
| 66 | | XGame | [xgame](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgame/xgame_members) | 3 | | | ||
| 67 | | XGameEvent | [xgameevent](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgameevent/xgameevent_members) | 1 | | | ||
| 68 | | XGameRuntimeFeature | [xgameruntimefeature](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgameruntimefeature/xgameruntimefeature_members) | 1 | | | ||
| 69 | | XGameRuntimeInit | [xgameruntimeinit](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgameruntimeinit/xgameruntimeinit_members) | 1 | | | ||
| 70 | | XGameSave | [xgamesave](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgamesave/xgamesave_members) | 5 | | | ||
| 71 | | XGameSaveFiles | [xgamesavefiles](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgamesavefiles/xgamesavefiles_members) | family page only | | | ||
| 72 | | XGameStreaming | [xgamestreaming](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgamestreaming/xgamestreaming_members) | 3 | | | ||
| 73 | | XGameUI | [xgameui](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgameui/xgameui_members) | 1 | | | ||
| 74 | | XLauncher | [xlauncher](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xlauncher/xlauncher_members) | 1 | | | ||
| 75 | | XMem | [xmem](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xmem/xmem_members) | 13 | | | ||
| 76 | | XNetworking | [xnetworking](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/networking/xnetworking/xnetworking_members) | 2 | | | ||
| 77 | | XPackage | [xpackage](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xpackage/xpackage_members) | 2 | | | ||
| 78 | | XPersistentLocalStorage | [xpersistentlocalstorage](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members) | 2 | | | ||
| 79 | | XSpeechSynthesizer | [xspeechsynthesizer](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xspeechsynthesizer/xspeechsynthesizer_members) | 2 | | | ||
| 80 | | XStore | [xstore](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xstore/xstore_members) | 4 | `XStoreIsAvailabilityPurchasable` | | ||
| 81 | | XSystem | [xsystem](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xsystem/xsystem_members) | 7 | | | ||
| 82 | | XTaskQueue | [xtaskqueue](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xtaskqueue/xtaskqueue_members) | 4 | `XTaskQueueIsEmpty` | | ||
| 83 | | XThread | [xthread](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xthread/xthread_members) | 2 | | | ||
| 84 | | XUser | [xuser](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xuser/xuser_members) | 11 | `XUserHandle` | | ||
| 85 | | XApu (console audio) | none found | 0 | `XApuConnect`, `XApuDequeueResult`, `XApuDisconnect`, `XApuEnqueueCommand`, `XApuGetResultCount` | | ||
| 86 | | XDsp (console audio) | none found | 0 | `XDspActivate`, `XDspConnectWithMaximumStreamLimit`, `XDspDeactivate`, `XDspDisconnect`, `XDspSubmitCommand` | | ||
| 87 | | XG (console graphics) | none found | 0 | `XGCreateTextureComputer`, `XGSuggestSwizzleMode` | | ||
| 88 | |||
| 89 | "Not found" means no page at the index or at the usual paths on that date; the five names in the upper rows may | ||
| 90 | still be documented under another path or name. For the last three rows no public page was found at all: treat | ||
| 91 | them like `d3d12_xs` above and recover what a shim needs from the game's call sites. | ||
| 92 | |||
| 48 | ## Lines not to cross | 93 | ## Lines not to cross |
| 49 | 94 | ||
| 50 | - **Do not copy GDK headers, samples or documentation text into the repository.** They are under Microsoft's | 95 | - **Do not copy GDK headers, samples or documentation text into the repository.** They are under Microsoft's |