1 | import { WebGLRenderer } from "../WebGLRenderer.js";
|
2 | import { WebGLUniforms } from "./WebGLUniforms.js";
|
3 |
|
4 | export 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 |
|
24 |
|
25 | attributes: any;
|
26 |
|
27 | getUniforms(): WebGLUniforms;
|
28 | getAttributes(): any;
|
29 | destroy(): void;
|
30 | }
|