Skip to main content

Module texture_streaming_plan

Module texture_streaming_plan 

Source
Expand description

Deterministic, allocation-free mip admission for texture streaming.

Structs§

DecodedKtx2Mip
Metadata for a successfully copied mip level.
TextureMipBackendCost
Backend costs not inferable from the KTX2 payload alone.
TextureMipBudget
Current free capacity in each independently constrained texture budget.
TextureMipCandidate
One independently addressable mip level and its resource costs.
TextureMipSelection
Selected level plus whether it meets the projected sampling footprint.

Enums§

Ktx2MipCandidateError
Fail-closed reasons a KTX2 level cannot become an uncompressed RGBA8 candidate.
Ktx2MipDecodeError
Errors returned by direct decode of a plain RGBA8 mip level.

Functions§

decode_rgba8_ktx2_mip_into
Decode one indexed, uncompressed RGBA8 KTX2 mip into caller-owned memory.
reserve_texture_mip
Reserve the selected candidate against a mutable remaining-budget snapshot.
rgba8_ktx2_mip_candidate
Build a planning record for one plain RGBA8 KTX2 mip level.
select_texture_mip
Select the least expensive adequate level, or the best affordable fallback.