UNPKG

840 BTypeScriptView Raw
1import { WebGLProgram } from "./WebGLProgram.js";
2
3/**
4 * An object with a series of statistical information about the graphics board memory and the rendering process.
5 */
6export 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 * @default null
24 */
25 programs: WebGLProgram[] | null;
26
27 /**
28 * @default { frame: 0, calls: 0, triangles: 0, points: 0, lines: 0 }
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}