1 | import { WebGLProgram } from "./WebGLProgram.js";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export class WebGLInfo {
|
7 | constructor(gl: WebGLRenderingContext);
|
8 |
|
9 | /**
|
10 | * @default true
|
11 | */
|
12 | autoReset: boolean;
|
13 |
|
14 | /**
|
15 | * @default { geometries: 0, textures: 0 }
|
16 | */
|
17 | memory: {
|
18 | geometries: number;
|
19 | textures: number;
|
20 | };
|
21 |
|
22 | |
23 |
|
24 |
|
25 | programs: WebGLProgram[] | null;
|
26 |
|
27 | |
28 |
|
29 |
|
30 | render: {
|
31 | calls: number;
|
32 | frame: number;
|
33 | lines: number;
|
34 | points: number;
|
35 | triangles: number;
|
36 | };
|
37 | update(count: number, mode: number, instanceCount: number): void;
|
38 | reset(): void;
|
39 | }
|