Skip to main content

Module texture_stream_policy

Module texture_stream_policy 

Source
Expand description

Deterministic caller-buffered texture mip residency planning and budget admission. Deterministic caller-buffered texture mip residency planning and budget admission.

Structs§

TextureStreamAction
TextureStreamBudget
Hard bounds for one planning pass. These budgets are renderer/texture budgets and are independent of the semantic 42 MiB Sentinel limit.
TextureStreamDemand
One texture’s immutable identity, current residency, and current-frame demand.
TextureStreamLifecycleAction
TextureStreamLifecyclePlan
Accounting for one generation of a physical resident-texture transition plan.
TextureStreamPartialPlan
Accounting for an additive, best-effort residency plan.

Enums§

TextureStreamActionKind
The action to perform after a plan has been accepted.
TextureStreamLifecycleActionKind
One physical resource transition in the bounded resident-texture lifecycle.
TextureStreamPlanError

Functions§

plan_texture_residency
Compute an all-or-nothing texture streaming plan without heap allocation.
plan_texture_residency_lifecycle
Plan physical texture replacements, uploads, and eviction of every unrequested resource.
plan_texture_residency_partial
Plan the highest-priority mip-request prefix that fits both budgets.