Simple dds heeader and data parser
npm install dds-parser```
npm i dds-parser
`ts
import { decodeDds, parseHeaders } from 'dds-parser';
const info = parseHeaders(arrayBuffer);
console.log(info.format);
const image = info.images[0];
const rgba = decodeDds(
arrayBuffer.slice(image.offset, image.offset + image.length),
info.format,
image.shape.width,
image.shape.height
);
`
* dxt1dxt3
* dxt5
* ati2`
*
GhostWolf (aka flowtsohg)
Jam3
toji