GPU: refuse a query heap with no queries #430
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by davutsimsekk on 2026-11-25T00:45:00Z.
ID3D12Device::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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.