TileContent

sealed interface TileContent

GPU-resident content for a single 3D Tiles tile. Sealed so the dispatcher + traverser can switch on payload type without an open-class hierarchy. Concrete subtypes are filled in by later phases:

Implementations are responsible for tracking their own GPU footprint (so the earth.worldwind.layer.ogc3d.content.TileContentCache LRU can charge them) and for releasing their GPU resources when evicted.

Inheritors

Properties

Link copied to clipboard
abstract val gpuByteCount: Int

Approximate GPU footprint of this content in bytes, page-aligned by the cache.

Functions

Link copied to clipboard
abstract fun release(dc: DrawContext)

Drops GPU resources. Idempotent.