UNPKG

774 BTypeScriptView Raw
1export interface WebGLCapabilitiesParameters {
2 precision?: string | undefined;
3 logarithmicDepthBuffer?: boolean | undefined;
4}
5
6export class WebGLCapabilities {
7 constructor(gl: WebGLRenderingContext, extensions: any, parameters: WebGLCapabilitiesParameters);
8
9 readonly isWebGL2: boolean;
10 precision: string;
11 logarithmicDepthBuffer: boolean;
12 maxTextures: number;
13 maxVertexTextures: number;
14 maxTextureSize: number;
15 maxCubemapSize: number;
16 maxAttributes: number;
17 maxVertexUniforms: number;
18 maxVaryings: number;
19 maxFragmentUniforms: number;
20 vertexTextures: boolean;
21 floatFragmentTextures: boolean;
22 floatVertexTextures: boolean;
23
24 getMaxAnisotropy(): number;
25 getMaxPrecision(precision: string): string;
26}