diff options
| author | Dominik <55330408+Dom-in@users.noreply.github.com> | 2026-11-22 14:46:09 +0000 |
|---|---|---|
| committer | Dominik <55330408+Dom-in@users.noreply.github.com> | 2026-11-22 14:46:09 +0000 |
| commit | c88423448e518d2ed888ce5c62d8046d6c589fe3 (patch) | |
| tree | e840da403a163d3c6b14e10e38eb31cfeeacb302 /docs/d3d12_command_objects.md | |
| parent | 003e78129303643a3fdc9e5f0e31a01b09759236 (diff) | |
xgameruntime: serve XThreadingImpl and XErrorImpl through QueryApiImpl
A GDK title reaches XTaskQueue/XAsync/XThread/XError through
xgameruntime.lib thunks, not named imports: QueryApiImpl(class, class),
one vtable slot with `this` first, then Release. QueryApiImpl refused
every class, so none of those calls could work.
The slot order is xgameruntime-docs' Layout list after IUnknown, and is
measured: the thunks linked into the package's libHttpClient.GDK.dll and
XCurl.dll (disassembled, not run) call IXThreadingImpl slots 3-7 and 9-30
and IXErrorImpl slot 3, each with the argument shape of the documented
function at that position (docs/runtime_imports.md, "Class layouts,
measured").
- XThreadingImpl: 28 slots forwarded to third_party/xtaskqueue (the same
code the named exports use), a per-thread time-sensitive flag, and the
two private slots (XAsyncBeginAlloc, XTaskQueueIsEmpty) logged once.
- XErrorImpl: XErrorReport (the docs' "_unknown_" slot; HRESULT + string)
logs and calls the XErrorSetCallback callback; XErrorSetOptions is S_OK.
- Process-wide singletons; QueryInterface answers IUnknown and the class.
- xgameruntime_test drives both slot by slot; tiny_gdk_load (under
gta6rt --run) creates and closes a queue through slots 12 and 17.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions