Draw trace: a depth-stencil view names its resource #52

Manually merged
github merged 1 commit from gh-pr/52/head into gh-pr/52/base 2026-11-27 03:15:47 +00:00
Owner

@⁠Sr-0w on GitHub · 2026-11-26 03:57 UTC · original
Sr-0w:diagnostics/trace-depth-view → main · +79 −9 · 3 files · 1 commits · merged 2026-11-26 06:50 UTC

What

The draw trace now names the resource behind a draw's depth-stencil view. CreateDepthStencilView notes its views with the render targets (RenderTargetView), but DepthView only looked in the shader views. Every traced draw and ExecuteIndirect therefore printed dsv 0x… (not a view this trace saw). The lookup now falls back to the target views and prints the resource, its shape and its home state. The literal string is now a constant, used at its four sites.

Why

The world's G-buffer stays empty, and the depth test is one of the places where a mesh pass's pixels could be lost. Without the DSV in the log, it was not possible to tell which depth buffer a pass tests against. With this change, a world frame's G-buffer passes show resource 0x… 2560x1440 format 19, home state 0x10.

In game

Diagnostics only. Nothing changes in what is reached in game, which is still the world with lights but no geometry, at about 2–10 fps.

Tests

  • New DrawTraceDepthViewTests (4 cases): a DSV noted with the targets, a shader view first, an unknown handle, and handle 0.
  • Loader tests: 423 passed.

🤖 Generated with Claude Code

**@⁠Sr-0w** on GitHub · 2026-11-26 03:57 UTC · [original](https://github.com/ThatRecompDev/five-star-recomp/pull/52) `Sr-0w:diagnostics/trace-depth-view` → `main` · +79 −9 · 3 files · 1 commits · merged 2026-11-26 06:50 UTC ## What The draw trace now names the resource behind a draw's depth-stencil view. `CreateDepthStencilView` notes its views with the render targets (`RenderTargetView`), but `DepthView` only looked in the shader views. Every traced draw and ExecuteIndirect therefore printed `dsv 0x… (not a view this trace saw)`. The lookup now falls back to the target views and prints the resource, its shape and its home state. The literal string is now a constant, used at its four sites. ## Why The world's G-buffer stays empty, and the depth test is one of the places where a mesh pass's pixels could be lost. Without the DSV in the log, it was not possible to tell which depth buffer a pass tests against. With this change, a world frame's G-buffer passes show `resource 0x… 2560x1440 format 19, home state 0x10`. ## In game Diagnostics only. Nothing changes in what is reached in game, which is still the world with lights but no geometry, at about 2–10 fps. ## Tests - New `DrawTraceDepthViewTests` (4 cases): a DSV noted with the targets, a shader view first, an unknown handle, and handle 0. - Loader tests: 423 passed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CreateDepthStencilView notes its views with the render targets (RenderTargetView), but the trace looked a draw's
DSV up only among the shader views, so every traced draw and ExecuteIndirect read "dsv ... (not a view this trace
saw)" and the depth a pass tests against could not be told from the log. The lookup now falls back to the target
views and names the resource, its shape and home state (in a world frame: 2560x1440 format 19, DEPTH_WRITE).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:15:42 +00:00
github manually merged commit 794c3f5fa6 into gh-pr/52/base 2026-11-27 03:15:47 +00:00
Author
Owner

@⁠ThatRecompDev on GitHub · 2026-11-26 07:30 UTC · original

nice catch on the dsv lookup, merged

**@⁠ThatRecompDev** on GitHub · 2026-11-26 07:30 UTC · [original](https://github.com/ThatRecompDev/five-star-recomp/pull/52#issuecomment-7185524028) nice catch on the dsv lookup, merged
This discussion has been locked. Commenting is limited to contributors.
No description provided.