Chevron DownAPI Reference

CompressedTextureLoader

The CompressedTextureLoader is experimental

Loader for compressed textures in the PVR file format

LoaderCharacteristic
File FormatPVR
File Extension.dds, .pvr
File TypeBinary
Data FormatArray of compressed image data objects
Supported APIsload, parse

Usage

import {CompressedTextureLoader} from '@loaders.gl/basis';
import {load} from '@loaders.gl/core';

const mipLevels = await load(url, CompressedTextureLoader);
for (const image of mipLevels) {
  ...
}

Data Format

Returns an array of image data objects representing mip levels.

{compressed: true, format, width, height, data: ...}

Options

OptionTypeDefaultDescription
N/A