Skip to content

Fix D3D12 resource creation allocation rollback - #327

Open
simzy39 wants to merge 1 commit into
Traverse-Research:mainfrom
simzy39:fix/d3d12-resource-creation-rollback
Open

simzy39 wants to merge 1 commit into
Traverse-Research:mainfrom
simzy39:fix/d3d12-resource-creation-rollback

Conversation

@simzy39

@simzy39 simzy39 commented Nov 28, 2026

Copy link
Copy Markdown

Fixes #325.

Return reserved suballocations when placed-resource options or native creation fail. Drop a partial native resource before returning its backing allocation. Convert null-success outputs to internal errors. This is independent of #323 and does not change sizing or caching.

Validation: five COM-stub tests using the public allocator constructor pass; four fail on main. Formatting, strict all-target Clippy and a Rust 1.71 consumer build pass on Windows. No physical OOM is required by the tests.

AI disclosure: an OpenAI coding agent implemented, tested and wrote this description at the contributor's explicit direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

D3D12 create_resource leaks reserved allocations on creation and option errors

1 participant