-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresample.d.ts
96 lines (84 loc) · 2.97 KB
/
resample.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* eslint-disable */
export declare interface AnimationResampleInstance extends WebAssembly.Instance {
readonly exports: AnimationResampleExports;
}
declare type ResampleFn = (
frames: number, frame_stride: number,
values: number, value_stride: number,
count: number, tolerance: number
) => number;
declare type ResampleUnknownFn = (
frames: number, frame_stride: number,
values: number, value_size: number, value_stride: number,
count: number, tolerance: number
) => number;
declare const enum GltfComponentType {
BYTE = 5120,
UNSIGNED_BYTE = 5121,
SHORT = 5122,
UNSIGNED_SHORT = 5123,
}
export declare interface AnimationResampleExports extends WebAssembly.Exports {
readonly memory: WebAssembly.Memory;
get_heap_ptr(): number;
stream_continue(
frames: number, frame_stride: number,
values: number, value_size: number, value_stride: number,
count: number
): number;
normalize(
ptr: number,
size: number, stride: number, count: number,
component_type: number
): number;
denormalize(
ptr: number,
size: number, stride: number, count: number,
component_type: number
): number;
readonly step_unknown: ResampleUnknownFn;
readonly lerp_unknown: ResampleUnknownFn;
readonly onlerp_quat: ResampleFn;
readonly slerp_quat: ResampleFn;
readonly lerp_vec4: ResampleFn;
readonly lerp_vec3: ResampleFn;
readonly lerp_vec2: ResampleFn;
readonly lerp_scalar: ResampleFn;
readonly step_vec4: ResampleFn;
readonly step_vec3: ResampleFn;
readonly step_vec2: ResampleFn;
readonly step_scalar: ResampleFn;
}
/**
* Internal representing supported typed array classes
* @hidden
*/
export declare type TypedArray = Float32Array | Uint16Array | Uint8Array | Int16Array | Int8Array;
declare type AnimationResampleWrapperUnknownFn = <T extends TypedArray>(
frames: T,
values: T,
elementSize: number,
tolerance: number,
normalize?: GltfComponentType | number
) => {frames: T, values: T};
declare type AnimationResampleWrapperFn = <T extends TypedArray>(
frames: T,
values: T,
tolerance: number,
normalize?: GltfComponentType | number
) => {frames: T, values: T};
export declare interface AnimationResampleWrapper {
readonly instance: AnimationResampleInstance;
readonly step_unknown: AnimationResampleWrapperUnknownFn;
readonly lerp_unknown: AnimationResampleWrapperUnknownFn;
readonly onlerp_quat: AnimationResampleWrapperFn;
readonly slerp_quat: AnimationResampleWrapperFn;
readonly lerp_vec4: AnimationResampleWrapperFn;
readonly lerp_vec3: AnimationResampleWrapperFn;
readonly lerp_vec2: AnimationResampleWrapperFn;
readonly lerp_scalar: AnimationResampleWrapperFn;
readonly step_vec4: AnimationResampleWrapperFn;
readonly step_vec3: AnimationResampleWrapperFn;
readonly step_vec2: AnimationResampleWrapperFn;
readonly step_scalar: AnimationResampleWrapperFn;
}