Skip to content

Documentation / device / TextureMipmapData

Interface: TextureMipmapData

Defined in: libs/device/src/gpuobject.ts:1037

A data structure that holds the texture data of all mipmap levels

Properties

width

width: number

Defined in: libs/device/src/gpuobject.ts:1039

Texture width of mipmap level 0


height

height: number

Defined in: libs/device/src/gpuobject.ts:1041

Texture height of mipmap level 0


depth

depth: number

Defined in: libs/device/src/gpuobject.ts:1043

Texture depth of mipmap level 0


isCubemap

isCubemap: boolean

Defined in: libs/device/src/gpuobject.ts:1045

true if it holds texture data for cube texture


isVolume

isVolume: boolean

Defined in: libs/device/src/gpuobject.ts:1047

true if it holds texture data for 3d texture


isArray

isArray: boolean

Defined in: libs/device/src/gpuobject.ts:1049

true if it holds texture array


isCompressed

isCompressed: boolean

Defined in: libs/device/src/gpuobject.ts:1051

true if the texture data are in compressed format


arraySize

arraySize: number

Defined in: libs/device/src/gpuobject.ts:1053

The array size if it holds texture data for array texture


mipLevels

mipLevels: number

Defined in: libs/device/src/gpuobject.ts:1055

How many mipmap levels in the texture data


format

format: TextureFormat

Defined in: libs/device/src/gpuobject.ts:1057

The texture format


mipDatas

mipDatas: TextureMipmapLevelData[][]

Defined in: libs/device/src/gpuobject.ts:1059

The mipmap level datas

Released under the MIT License.