UNPKG

818 BTypeScriptView Raw
1import { WebGLRenderer } from "../WebGLRenderer.js";
2import { WebGLUniforms } from "./WebGLUniforms.js";
3
4export class WebGLProgram {
5 constructor(renderer: WebGLRenderer, cacheKey: string, parameters: object);
6
7 name: string;
8 id: number;
9 cacheKey: string; // unique identifier for this program, used for looking up compiled programs from cache.
10
11 /**
12 * @default 1
13 */
14 usedTimes: number;
15 program: any;
16 vertexShader: WebGLShader;
17 fragmentShader: WebGLShader;
18 /**
19 * @deprecated Use {@link WebGLProgram#getUniforms getUniforms()} instead.
20 */
21 uniforms: any;
22 /**
23 * @deprecated Use {@link WebGLProgram#getAttributes getAttributes()} instead.
24 */
25 attributes: any;
26
27 getUniforms(): WebGLUniforms;
28 getAttributes(): any;
29 destroy(): void;
30}