LavaUI docs

struct FrameCapacity

Swift

struct FrameCapacity

Element counts for one frame — used both for "how much fits" and for "how much was written", because those two are compared constantly and one type makes the comparison a line rather than four.

Sources/LavaUI/FrameSink.swift:7

Constructors

init(commands: Int = 0, glyphs: Int = 0, meshVertices: Int = 0, spatialVertices: Int = 0, gradients: Int = 0)

Not documented.

Sources/LavaUI/FrameSink.swift:16

Properties

var commands: Int

Not documented.

Sources/LavaUI/FrameSink.swift:8

var glyphs: Int

Not documented.

Sources/LavaUI/FrameSink.swift:9

var gradients: Int

Gradient descriptors. One per gradient rather than per quad, so this stays small even on a screen full of them.

Sources/LavaUI/FrameSink.swift:14

var meshVertices: Int

Not documented.

Sources/LavaUI/FrameSink.swift:10

var spatialVertices: Int

Not documented.

Sources/LavaUI/FrameSink.swift:11

Methods

func fits(_ limit: FrameCapacity) -> Bool

Element-wise "fits inside".

Sources/LavaUI/FrameSink.swift:258