1 | import { PixelFormat, TextureDataType } from "../../constants.js";
|
2 |
|
3 | export interface WebGLCapabilitiesParameters {
|
4 | |
5 |
|
6 |
|
7 | precision?: string | undefined;
|
8 |
|
9 | |
10 |
|
11 |
|
12 | logarithmicDepthBuffer?: boolean | undefined;
|
13 |
|
14 | |
15 |
|
16 |
|
17 | reverseDepthBuffer?: boolean | undefined;
|
18 | }
|
19 |
|
20 | export class WebGLCapabilities {
|
21 | constructor(gl: WebGLRenderingContext, extensions: any, parameters: WebGLCapabilitiesParameters);
|
22 |
|
23 | readonly isWebGL2: boolean;
|
24 |
|
25 | getMaxAnisotropy: () => number;
|
26 | getMaxPrecision: (precision: string) => string;
|
27 |
|
28 | textureFormatReadable: (textureFormat: PixelFormat) => boolean;
|
29 | textureTypeReadable: (textureType: TextureDataType) => boolean;
|
30 |
|
31 | precision: string;
|
32 | logarithmicDepthBuffer: boolean;
|
33 | reverseDepthBuffer: boolean;
|
34 |
|
35 | maxTextures: number;
|
36 | maxVertexTextures: number;
|
37 | maxTextureSize: number;
|
38 | maxCubemapSize: number;
|
39 |
|
40 | maxAttributes: number;
|
41 | maxVertexUniforms: number;
|
42 | maxVaryings: number;
|
43 | maxFragmentUniforms: number;
|
44 |
|
45 | vertexTextures: boolean;
|
46 |
|
47 | maxSamples: number;
|
48 | }
|