Skip to content

galavi / TileSpec

Interface: TileSpec

Defined in: utils/tile.ts:215

Layer-side declaration of "I am a tiled image; allocate a pool of this shape". Layers return this from getTileSpec(); the view-side LayerRenderer creates a TilePool (and the surrounding TileManager) from it. Strictly data-side — layers themselves never touch the GPU.

Properties

tileSize

tileSize: Vec3

Defined in: utils/tile.ts:216


gridCells?

optional gridCells: 9 | 27

Defined in: utils/tile.ts:217


format?

optional format: GPUTextureFormat

Defined in: utils/tile.ts:218


bytesPerTexel?

optional bytesPerTexel: number

Defined in: utils/tile.ts:219


label?

optional label: string

Defined in: utils/tile.ts:220


maxPoolSize?

optional maxPoolSize: number

Defined in: utils/tile.ts:221

Released under the GPL-3.0 License.