[Help Wanted] Boot untouched MIT Microsoft Xbox-GDK-Samples compiled under _GAMING_XBOX_SCARLETT with live pixel verification #19

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

@⁠californiaAlmonds on GitHub · 2026-11-22 08:35 UTC · original

Summary

Most of our current graphics tests target PC-GDK or synthetic harnesses. To catch real console ABI issues continuously, we want an automated CTest harness that compiles and runs 100% untouched MIT-licensed samples from microsoft/Xbox-GDK-Samples under /D_GAMING_XBOX_SCARLETT /D_GAMING_XBOX against OpenScarlett's .libs and verifies rendered frames end-to-end.

Scope

  1. Add a minimal open-source GDKX compatibility header layer (under tests/gdkx_bringup/ or include/openscarlett/gdkx/) so untouched _GAMING_XBOX_SCARLETT sample sources compile with dxc + MSVC linking only OpenScarlett's libs (d3d12_xs.lib, xgameruntime.lib, kernelx.lib, pixevt.lib).
  2. Add untouched MIT Microsoft samples (preserving Microsoft's MIT license notice, zero edits to .cpp/.h/.hlsl):
    • Samples/IntroGraphics/SimpleTriangle
    • One richer IntroGraphics sample such as SimpleLighting or SimpleTexture (adds depth buffer + constant buffers / textures).
  3. Launch each built *_GDKX.exe via openscarlett.exe run from an isolated zero-DLL directory (verifying real APC hook injection without copying DLLs next to the executable).
  4. Verify via telemetry JSON that DeviceX, CommandQueueX, and GraphicsCommandListX stayed wrapped for the entire run (D3D12XboxCreateDevice, CreateCommandQueue, CreateCommittedResource, CreateGraphicsPipelineState, SetFrameIntervalX, ScheduleFrameEventX, WaitFrameEventX, ExecuteCommandLists, PresentX all S_OK).
  5. Execute >= 10 PresentX frames and assert real rendered pixels via readback / PNG capture (e.g., CornflowerBlue background + RGB-interpolated triangle pixels in the center for SimpleTriangle, not solid black or solid clear color).

Acceptance Criteria

  • Automated CTest target builds and runs cleanly on both real desktop GPU and Windows CI (WARP).
  • Zero edits to Microsoft's sample source files.
  • Telemetry proves zero raw-host D3D12 bypass; pixel readback verifies actual geometry output.

Note: Depends on (or pairs nicely with) the real _GAMING_XBOX_SCARLETT d3d12_xs ABI fixes issue. Comment below or hop into Discord to coordinate: https://discord.gg/sShMY2fjR

**@⁠californiaAlmonds** on GitHub · 2026-11-22 08:35 UTC · [original](https://github.com/californiaAlmonds/OpenScarlett/issues/19) ## Summary Most of our current graphics tests target PC-GDK or synthetic harnesses. To catch real console ABI issues continuously, we want an automated CTest harness that compiles and runs **100% untouched** MIT-licensed samples from [`microsoft/Xbox-GDK-Samples`](https://github.com/microsoft/Xbox-GDK-Samples) under `/D_GAMING_XBOX_SCARLETT /D_GAMING_XBOX` against OpenScarlett's `.lib`s and verifies rendered frames end-to-end. ## Scope 1. Add a minimal open-source GDKX compatibility header layer (under `tests/gdkx_bringup/` or `include/openscarlett/gdkx/`) so untouched `_GAMING_XBOX_SCARLETT` sample sources compile with `dxc` + MSVC linking **only** OpenScarlett's libs (`d3d12_xs.lib`, `xgameruntime.lib`, `kernelx.lib`, `pixevt.lib`). 2. Add untouched MIT Microsoft samples (preserving Microsoft's MIT license notice, zero edits to `.cpp`/`.h`/`.hlsl`): - `Samples/IntroGraphics/SimpleTriangle` - One richer IntroGraphics sample such as `SimpleLighting` or `SimpleTexture` (adds depth buffer + constant buffers / textures). 3. Launch each built `*_GDKX.exe` via `openscarlett.exe run` from an **isolated zero-DLL directory** (verifying real APC hook injection without copying DLLs next to the executable). 4. Verify via telemetry JSON that `DeviceX`, `CommandQueueX`, and `GraphicsCommandListX` stayed wrapped for the entire run (`D3D12XboxCreateDevice`, `CreateCommandQueue`, `CreateCommittedResource`, `CreateGraphicsPipelineState`, `SetFrameIntervalX`, `ScheduleFrameEventX`, `WaitFrameEventX`, `ExecuteCommandLists`, `PresentX` all `S_OK`). 5. Execute >= 10 `PresentX` frames and assert real rendered pixels via readback / PNG capture (e.g., CornflowerBlue background + RGB-interpolated triangle pixels in the center for `SimpleTriangle`, not solid black or solid clear color). ## Acceptance Criteria - Automated CTest target builds and runs cleanly on both real desktop GPU and Windows CI (WARP). - Zero edits to Microsoft's sample source files. - Telemetry proves zero raw-host D3D12 bypass; pixel readback verifies actual geometry output. --- Note: Depends on (or pairs nicely with) the real `_GAMING_XBOX_SCARLETT` `d3d12_xs` ABI fixes issue. Comment below or hop into Discord to coordinate: https://discord.gg/sShMY2fjR
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:10:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.