Verify FidelityFX create-to-destroy ownership on Windows #36
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!36
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/36/head"
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?
@R0Y00 on GitHub · 2026-11-21 12:00 UTC · original
R0Y00:codex/ffx-context-lifecycle→main· +379 −9 · 9 files · 1 commits · merged 2026-11-21 12:01 UTCConnect the static translation of the local FidelityFX loader create export to the existing destroy translation. The returned wrapper is handed to destroy unchanged. The caller binds a controlled provider and selects either the default CRT allocator or an allocator with user data.
Compare the native source-built create reference and translated create on Windows. Each runs 14 lifecycle cases. The test checks the exact provider status, inner and wrapper pointers, allocation sizes, callback arguments, release order and absence of outstanding allocations. On a provider create error the caller sees a null handle and no wrapper allocation. The Windows adapter also rolls back successful provider creation if wrapper allocation fails. This is an explicit host behavior.
The local package experiment compiled both loader exports and passed the same cases. Public CI builds its own fixture. Live graphics-provider initialization is still open.
Reproduce with
cmake --build --preset devandctest --preset dev --no-tests=error -R '^cpu_aot_context_lifecycle$' -V. Package-local reproduction is in docs/experiments.md.