WebGLCapabilities.d.ts 647 字节
Newer Older
L
lu wang 已提交
1
export interface WebGLCapabilitiesParameters {
M
Mr.doob 已提交
2 3
	precision?: any;
	logarithmicDepthBuffer?: any;
L
lu wang 已提交
4 5 6
}

export class WebGLCapabilities {
M
Mr.doob 已提交
7 8

	constructor(
M
Mr.doob 已提交
9 10 11 12
		gl: WebGLRenderingContext,
		extensions: any,
		parameters: WebGLCapabilitiesParameters
	);
L
lu wang 已提交
13

14
	isWebGL2: boolean;
M
Mr.doob 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27
	precision: any;
	logarithmicDepthBuffer: any;
	maxTextures: any;
	maxVertexTextures: any;
	maxTextureSize: any;
	maxCubemapSize: any;
	maxAttributes: any;
	maxVertexUniforms: any;
	maxVaryings: any;
	maxFragmentUniforms: any;
	vertexTextures: any;
	floatFragmentTextures: any;
	floatVertexTextures: any;
L
lu wang 已提交
28

M
Mr.doob 已提交
29 30
	getMaxAnisotropy(): number;
	getMaxPrecision( precision: string ): string;
M
Mr.doob 已提交
31

L
lu wang 已提交
32
}