fix(gpu): resolve D3D12 error 646 in ambient depth binding #2
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/trustno1-coder--VIctory-NVIDIA!2
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2"
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?
@jeremygold02 on GitHub · 2026-11-26 07:01 UTC · original
jeremygold02:codex/d3d12-ambient-depth-srv→main· +24 −12 · 2 files · 1 commits · merged 2026-11-26 14:09 UTCProblem
The ambient lighting stand-in used the output image's UAV as a placeholder for depth in the radiance and air passes. The descriptor lookup also accepted an unordered view for a shader-resource lookup. The host then bound a UAV to the compute table that expects a depth SRV, triggering Direct3D 12 debug-layer error 646.
Change
Test setup
Verification
Built a clean Windows diagnostics checkpoint containing this fix with
cargo build --offline --locked --target-dir target --jobs 2 --profile diag -p victory --features diagnostics. Ran both NVIDIA launcher presets withVICTORY_D3D12_DEBUG=1.Both validation runs used the integrated local checkpoint. This PR contains only the ambient descriptor-binding change. Frame-rate impact was outside the scope of these checks.