GPU: refuse a query heap with no queries #430
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/fxceless--victory-fork!430
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-430"
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?
@davutsimsekk on GitHub · 2026-11-25 00:45 UTC · original
davutsimsekk:fix/query-heap-count→main· +23 −0 · 1 files · 1 commits · openID3D12Device::CreateQueryHeapreturnedS_OKand handed out a heap forD3D12_QUERY_HEAP_DESC::NumDescriptors == 0. D3D12 validates that the count is greater than 0 and returnsE_INVALIDARG; the sibling creations here (queue,fence,signature) already reject empty descriptions.This returns
E_INVALIDARGwhencount == 0. Valid heaps and the null-description path are unchanged.Test
query::tests::a_query_heap_needs_a_querycallscreatewithcount = 0and assertsE_INVALIDARGwith a null out pointer. Onmainit returnsS_OK.cargo test -p victory-gpu --lib a_query_heap_needs_a_query: 1 passedcargo clippy -p victory-gpu --all-targets --locked -- -D warnings: cleanrustfmt --edition 2024 --check crates/victory-gpu/src/query.rs: cleanView 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.