Model loading · function
encodeEtc2
rgba at width by height as format blocks, row of blocks after row of blocks.
Explained in Importing models.
function encodeEtc2(format: Etc2Format, rgba: Uint8Array, width: number, height: number): Uint8Arrayimport { encodeEtc2 } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
format | Etc2Format | |
rgba | Uint8Array | |
width | number | |
height | number |