Skip to content

@bloopjs/toodle


@bloopjs/toodle / backends/ITextureAtlas / ITextureAtlas

Interface: ITextureAtlas

Defined in: backends/ITextureAtlas.ts:24

Backend-agnostic texture atlas interface.

Texture atlases are GPU texture arrays that store multiple textures. Each backend manages its atlases and provides this common interface.

Properties

format

readonly format: TextureAtlasFormat

Defined in: backends/ITextureAtlas.ts:28

Texture format


handle

readonly handle: unknown

Defined in: backends/ITextureAtlas.ts:34

Underlying GPU handle (GPUTexture for WebGPU, WebGLTexture for WebGL)


id

readonly id: string

Defined in: backends/ITextureAtlas.ts:26

Unique identifier for this atlas


layers

readonly layers: number

Defined in: backends/ITextureAtlas.ts:30

Number of array layers


size

readonly size: number

Defined in: backends/ITextureAtlas.ts:32

Size in pixels (width = height)