feat(d3d12_x): implement root signature serialization and deserialization #19

Closed
opened 2026-11-26 19:14:13 +00:00 by github-bot · 0 comments
Owner

@⁠Dark3581 on GitHub · 2026-11-21 14:02 UTC · original

A self-contained first piece of #4 that needs no GPU device: an import audit shows a BVH builder DLL importing D3D12SerializeVersionedRootSignature and the FidelityFX upscaler importing D3D12CreateRootSignatureDeserializer, both from d3d12_xs.dll. All four stubs are in Inventory.cpp:

  • D3D12SerializeRootSignature
  • D3D12SerializeVersionedRootSignature
  • D3D12CreateRootSignatureDeserializer
  • D3D12CreateVersionedRootSignatureDeserializer

Unknown, to settle first

  • Whether the console root signature description structs and the serialized blob match desktop D3D12's. If they match, forwarding to the host d3d12.dll (through Forwards.def) is enough; if they differ, translate or stop with AbxUnsupported. Show the evidence in the PR (header comparison or disassembly of a call site), not in the repository.
  • What the deserializer interfaces return, since they are COM objects a title calls into.

How to do it

  • Each stub's declaration in include/Exports.hpp has no parameters yet. Give it the exact signature from the public GDK headers; do not copy the headers into the repository.
  • Implement each function for every input. A path whose behaviour on a desktop host is unknown calls AbxUnsupported(__func__, "what is unknown"); never return a made-up success.
  • List known gaps in a debt fragment under docs/dev/debt/changes/, and add an e2e scenario (core/libs/tests/FakeTitle.cpp, e2e.py).
  • Rules: CONTRIBUTING.md. One PR may take the whole issue or part of it; say which in the PR.
**@⁠Dark3581** on GitHub · 2026-11-21 14:02 UTC · [original](https://github.com/Dark3581/AnyBox/issues/19) A self-contained first piece of #4 that needs no GPU device: an import audit shows a BVH builder DLL importing `D3D12SerializeVersionedRootSignature` and the FidelityFX upscaler importing `D3D12CreateRootSignatureDeserializer`, both from `d3d12_xs.dll`. All four stubs are in [Inventory.cpp](https://github.com/Dark3581/AnyBox/blob/main/core/libs/xdll/d3d12_x/Inventory.cpp): - `D3D12SerializeRootSignature` - `D3D12SerializeVersionedRootSignature` - `D3D12CreateRootSignatureDeserializer` - `D3D12CreateVersionedRootSignatureDeserializer` **Unknown, to settle first** - Whether the console root signature description structs and the serialized blob match desktop D3D12's. If they match, forwarding to the host `d3d12.dll` (through `Forwards.def`) is enough; if they differ, translate or stop with `AbxUnsupported`. Show the evidence in the PR (header comparison or disassembly of a call site), not in the repository. - What the deserializer interfaces return, since they are COM objects a title calls into. **How to do it** - Each stub's declaration in `include/Exports.hpp` has no parameters yet. Give it the exact signature from the public GDK headers; do not copy the headers into the repository. - Implement each function for every input. A path whose behaviour on a desktop host is unknown calls `AbxUnsupported(__func__, "what is unknown")`; never return a made-up success. - List known gaps in a debt fragment under `docs/dev/debt/changes/`, and add an e2e scenario (`core/libs/tests/FakeTitle.cpp`, `e2e.py`). - Rules: [CONTRIBUTING.md](https://github.com/Dark3581/AnyBox/blob/main/CONTRIBUTING.md). One PR may take the whole issue or part of it; say which in the PR.
github-bot 2026-11-26 19:14:13 +00:00
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:14:13 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Dark3581--AnyBox#19
No description provided.