NativeGuiResources

Device-owned lifetime registry for complete portable GUI resource generations.

Each stable presenter may retain at most three sets and this device at most 64, independently of native Canvas target permits. A set contains at most one resource for each exact positive layer extent supplied before allocation. Cache release only requests retirement; initialization, extraction pins, actual GUI consumption, and physical destruction independently control release. Resources and fences remain here rather than in screens or immutable core frames, including after partial initialization or GUI failure. Every call belongs to the constructing render thread, and ordinary operations never wait for completion.

Functions

Link copied to clipboard

Transfers one layer resource immediately after allocation, before initialization or upload may fail.

Link copied to clipboard

Pins a complete initialized generation before any callback or intermediate native flush can release its cache.

Link copied to clipboard

Creates one immutable presenter identity without reserving storage or retaining the presenter.

Link copied to clipboard

Releases one extraction pin after the complete ordered presenter call returns or fails.

Link copied to clipboard

Marks the pinned generation as potentially referenced immediately before each native GUI blit.

Link copied to clipboard

Requests retirement while letting the screen immediately clear every cache and resource reference.

Link copied to clipboard

Reserves one complete portable generation before the caller allocates any native resource.

Link copied to clipboard

Reports active, retired, partially initialized, quarantined, and asynchronously destroying portable sets.

Link copied to clipboard

Seals initialization and records its completion fence after all attempted allocations and uploads.