Report when the build cannot enable the D3D12 debug layer #4919
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4919
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4918"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 14:04 UTC · original
andrewpozdnakov7-jpg:codex2/fix/report-debug-layer-build→main· +5 −1 · 1 files · 1 commits · openRefs #4619.
What it changes
The release launcher can record
VICTORY_D3D12_DEBUG=1in its settings even when the executable was built withoutdiagnostics. Host creation now reports that requirement when the flag is requested. This makes it clear in the play log whether this build can enable the debug layer.How it was tested
5fabb46eand19f474e4b19147e9f2cf38379e948a133a98f199on Windows with the diagnostics feature both present and absent. The fixture captured the warning through a stub logger.e1251c31has the same baseline decision.cargo xtask policy --stagedaccepted the changed file. Main's CI check has five existing Clippy errors tracked in #4708.Checked for overlap
VICTORY_D3D12_DEBUGand checked open PRs touchinghost.rs. #4574 improves the recorded failure details once the debug layer is enabled. It combines cleanly with this patch ingit merge-tree.Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
@Dukestar69 on GitHub · 2026-12-01 16:23 UTC · original · approved these changes
Reviewed crates/victory-gpu/src/host.rs: logging a clear warning when VICTORY_D3D12_DEBUG is requested on a build compiled without the diagnostics feature avoids silent no-ops when diagnosing GPU failures. Verified on Windows: both cargo check -p victory-gpu --tests and cargo check -p victory-gpu --features diagnostics --tests passed cleanly.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.