1.0.3 • Published 2 years ago
@types/parse-dds v1.0.3
Installation
npm install --save @types/parse-dds
Summary
This package contains type definitions for parse-dds (https://github.com/Jam3/parse-dds).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-dds.
index.d.ts
// Type definitions for parse-dds 1.0
// Project: https://github.com/Jam3/parse-dds
// Definitions by: 4eb0da <https://github.com/4eb0da>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface DdsInfo {
    // width, height
    shape: [number, number];
    images: Array<{
        // byte offset
        offset: number;
        // by length
        length: number;
        // width, height
        shape: [number, number];
    }>;
    format: 'dxt1' | 'dxt3' | 'dxt5' | 'rgba32f';
    flags: number;
    cubemap: boolean;
}
declare function parse(buffer: ArrayBuffer): DdsInfo;
/**
 * Parse a buffer with dds and returns info about it
 */
export = parse;Additional Details
- Last updated: Tue, 26 Apr 2022 19:01:47 GMT
 - Dependencies: none
 - Global values: none
 
Credits
These definitions were written by 4eb0da.