d3d12_xs: export IID and WKPDID data symbols #984

Closed
EvilOpus wants to merge 1 commit from upstream-pr/991 into main
EvilOpus commented 2026-11-23 20:13:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by EvilOpus on 2026-11-23T20:13:16Z.


Summary

Export the 32 interface identifier and well-known property data symbols (IID_*, WKPDID_*) from the desktop d3d12_xs.dll shim. Package DLLs resolve these by name for QueryInterface and device creation.

Evidence

30 of the 32 GUIDs are standard D3D12 and DXGI interfaces defined in the public Windows SDK headers (d3d12.h, dxgi.h, dxgi1_2.h). The test verifies each exported value against the SDK definition.

The two remaining identifiers (IID_ID3D12XboxDmaCommandList and IID_IGraphicsUnknown) do not appear in the desktop Windows SDK. Their values have not been independently confirmed by a second source and should be treated as provisional until a source-built fixture or import-table observation validates them.

Test command and result

cmake --build --preset dev --target d3d12_xs_shim d3d12_xs_shim_check
ctest --preset dev --no-tests=error -R d3d12_xs_shim -V
5/5 tests passed:
  d3d12_xs_shim_exports        PASS
  d3d12_xs_shim_serialize      PASS
  d3d12_xs_shim_deserialize    PASS
  d3d12_xs_shim_iids           PASS  (new)
  d3d12_xs_shim_warp_root      PASS

The iids scenario:

  • Positive: loads all 32 IID_* and WKPDID_* symbols by name from the shim DLL and compares each 16-byte GUID to the expected value (32 checks)
  • Negative control: a fabricated name (IID_ID3D12XboxFakeInterface) is not exported

What was measured

Each standard GUID byte-matches the value from the public Windows SDK header. The test loads symbols by GetProcAddress name, not by ordinal, matching how package DLLs import them.

What remains a hypothesis

  • The two Xbox-specific GUID values (IID_ID3D12XboxDmaCommandList, IID_IGraphicsUnknown) have not been confirmed by a public source or source-built fixture.
  • Whether any title imports these by ordinal rather than name. The shim does not assign ERA ordinals to the data exports.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6567913638 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/991). Originally posted by [EvilOpus](https://github.com/EvilOpus) on 2026-11-23T20:13:16Z. --- ## Summary Export the 32 interface identifier and well-known property data symbols (`IID_*`, `WKPDID_*`) from the desktop `d3d12_xs.dll` shim. Package DLLs resolve these by name for `QueryInterface` and device creation. ## Evidence 30 of the 32 GUIDs are standard D3D12 and DXGI interfaces defined in the public Windows SDK headers (`d3d12.h`, `dxgi.h`, `dxgi1_2.h`). The test verifies each exported value against the SDK definition. The two remaining identifiers (`IID_ID3D12XboxDmaCommandList` and `IID_IGraphicsUnknown`) do not appear in the desktop Windows SDK. Their values have not been independently confirmed by a second source and should be treated as provisional until a source-built fixture or import-table observation validates them. ## Test command and result ``` cmake --build --preset dev --target d3d12_xs_shim d3d12_xs_shim_check ctest --preset dev --no-tests=error -R d3d12_xs_shim -V ``` ``` 5/5 tests passed: d3d12_xs_shim_exports PASS d3d12_xs_shim_serialize PASS d3d12_xs_shim_deserialize PASS d3d12_xs_shim_iids PASS (new) d3d12_xs_shim_warp_root PASS ``` The `iids` scenario: - **Positive**: loads all 32 `IID_*` and `WKPDID_*` symbols by name from the shim DLL and compares each 16-byte GUID to the expected value (32 checks) - **Negative control**: a fabricated name (`IID_ID3D12XboxFakeInterface`) is not exported ## What was measured Each standard GUID byte-matches the value from the public Windows SDK header. The test loads symbols by `GetProcAddress` name, not by ordinal, matching how package DLLs import them. ## What remains a hypothesis - The two Xbox-specific GUID values (`IID_ID3D12XboxDmaCommandList`, `IID_IGraphicsUnknown`) have not been confirmed by a public source or source-built fixture. - Whether any title imports these by ordinal rather than name. The shim does not assign ERA ordinals to the data exports.
upstream-sync closed this pull request 2026-11-24 06:45:44 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
R0Y00/Xbox2Windows!984
No description provided.