Skip to content

Add bounded descriptor pools and upload rings with GPU retirement - #38

Merged
atcarter714 merged 1 commit into
mainfrom
sprint/resource-allocation
Nov 20, 2026
Merged

atcarter714 merged 1 commit into
mainfrom
sprint/resource-allocation

Conversation

@atcarter714

@atcarter714 atcarter714 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Recorded COM references keep a buffer or heap alive but do not reserve ranges inside it. This adds bounded descriptor pools and aligned upload rings whose allocations retain independent recording/submission leases, preventing reuse until every consuming recording has retired or been discarded.

  • Add explicit exhaustion, alignment, wraparound/coalescing, owner disposal, and managed no-overwrite checks. Pools can be disposed while existing allocations remain live.
  • Add SRV writes, allocation-aware native recording and descriptor table binding. Texture uploads and HelloTexture share descriptor/upload pools; the rendering fixture samples two shared descriptors and checks pixels after early disposal.
  • Transfer managed allocation leases with queue submissions. A retired recording must be reset before resubmission because its ranges may have been reclaimed; this compatibility change is documented.
  • Add a 20,000-operation portable bitmap fixture and Windows tests with independently blocked queues, numerical readback, timeout, early disposal, discarded recordings and repeated ring reuse.
  • Reserve preview.4 for this increment, keeping the preview.3 release independent. General readback rings, texture formats/mips and GPU-side queue handoff remain follow-up work in Sprint 2: generalize resource allocation, textures and rendering bindings #33.

Validation: all six qualification jobs passed: Windows Debug/Release and .NET 10/11 JIT/NativeAOT on Windows/Linux. Windows JIT and AOT passed the blocked-queue and texture readback fixtures; both full WARP sample suites passed, including the shared-pool HelloTexture consumer. Both Debug/Release package gates built all 12 runnable samples outside the checkout on both runtimes and ran Fleet Battler with bounded presentation/resize checks. Portable fixtures passed the 20,000 allocation operations and existing 2,298 COM checks with zero live native objects. Local .NET 10/11 compilation, portable fixtures and locked restore passed as well.

This is the first implementation slice of #33, not complete rendering-toolkit parity. No proprietary dependency or new top-level SDK folder is introduced.

@atcarter714
atcarter714 marked this pull request as ready for review November 20, 2026 23:12
@atcarter714
atcarter714 merged commit fe012e4 into main Nov 20, 2026
6 checks passed
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.

1 participant