Draw trace: a depth-stencil view names its resource #52
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ThatRecompDev--five-star-recomp!52
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/52/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCWhat
The draw trace now names the resource behind a draw's depth-stencil view.
CreateDepthStencilViewnotes its views with the render targets (RenderTargetView), butDepthViewonly looked in the shader views. Every traced draw and ExecuteIndirect therefore printeddsv 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
DrawTraceDepthViewTests(4 cases): a DSV noted with the targets, a shader view first, an unknown handle, and handle 0.🤖 Generated with Claude Code
@ThatRecompDev on GitHub · 2026-11-26 07:30 UTC · original
nice catch on the dsv lookup, merged