Model loading · interface

Ktx2Texture

A KTX2 file's blocks, and the colour space its format names.

Explained in Importing models.

interface Ktx2Texture
import type { Ktx2Texture } from '@driftengine/assets';

Properties

NameTypeDescription
sourcereadonlyCompressedTextureSourceThe blocks, for createSurfaceTexture where uploadsCompressed says the device takes them.
srgbreadonlybooleanWhether the file's format is an sRGB one: the colorSpace to create the texture in.