Expand description
Deterministic, allocation-free mip admission for texture streaming.
Structs§
- Decoded
Ktx2 Mip - Metadata for a successfully copied mip level.
- Texture
MipBackend Cost - Backend costs not inferable from the KTX2 payload alone.
- Texture
MipBudget - Current free capacity in each independently constrained texture budget.
- Texture
MipCandidate - One independently addressable mip level and its resource costs.
- Texture
MipSelection - Selected level plus whether it meets the projected sampling footprint.
Enums§
- Ktx2
MipCandidate Error - Fail-closed reasons a KTX2 level cannot become an uncompressed RGBA8 candidate.
- Ktx2
MipDecode Error - 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.