UNPKG

@gltf-transform/functions

Version:

Functions for common glTF modifications, written using the core API

15 lines (14 loc) 566 B
import { Primitive } from '@gltf-transform/core'; /** Flags 'empty' values in a Uint32Array index. */ export declare const EMPTY_U32: number; export declare class VertexStream { private attributes; /** Temporary vertex views in 4-byte-aligned memory. */ private u8; private u32; constructor(prim: Primitive); private _initAttribute; hash(index: number): number; equal(a: number, b: number): boolean; } export declare function hashLookup(table: Uint32Array, buckets: number, stream: VertexStream, key: number, empty?: number): number;