Loader for compressed textures in the PVR file format
Loader | Characteristic |
---|---|
File Format | PVR, DDS |
File Extension | .dds , .pvr |
File Type | Binary |
Data Format | Array of compressed image data objects |
Supported APIs | load , parse |
import {CompressedTextureLoader} from '@loaders.gl/textures';
import {load} from '@loaders.gl/core';
const mipLevels = await load(url, CompressedTextureLoader);
for (const image of mipLevels) {
...
}
Returns an array of image data objects representing mip levels.
{compressed: true, format, width, height, data: ..., levelSize}
Option | Type | Default | Description |
---|---|---|---|
N/A |