From d403c1c1d9bcdcf15c4ebfd0c85dbddb798a8c02 Mon Sep 17 00:00:00 2001 From: Atrahasis Date: Mon, 14 May 2018 22:03:58 +0200 Subject: [PATCH] Add WebGLInfo --- types/three/three-core.d.ts | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 351084f0d1..189584bbf7 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -5405,21 +5405,7 @@ export class WebGLRenderer implements Renderer { */ maxMorphNormals: number; - /** - * An object with a series of statistical information about the graphics board memory and the rendering process. Useful for debugging or just for the sake of curiosity. The object contains the following fields: - */ - info: { - memory: { - geometries: number; - textures: number; - }; - render: { - calls: number; - faces: number; - points: number; - }; - programs: number; - }; + info: WebGLInfo; shadowMap: WebGLShadowMap; @@ -6065,6 +6051,26 @@ export class WebGLLights { get(light: any): any; } +/** + * An object with a series of statistical information about the graphics board memory and the rendering process. + */ +export class WebGLInfo { + autoReset: boolean; + memory: { + geometries: number; + textures: number; + }; + programs: number | null; + render: { + calls: number; + lines: number; + points: number; + triangles: number; + }; + reset(): void; + update(): void; +} + export class WebGLIndexedBufferRenderer { constructor(gl: WebGLRenderingContext, properties: any, info: any);