RenderCost

sealed interface RenderCost

What drawing a surface would cost, as far as its components alone can say.

Inheritors

Types

Link copied to clipboard
data class Exceeds(val limit: Int) : RenderCost

The surface expands past RenderLimits.maxInstances and must not be drawn.

Link copied to clipboard
data class Fits(val instances: Int, val exact: Boolean) : RenderCost

The surface fits, and drawing it composes instances component instances.