UNPKG

detect-features

Version:
28 lines (27 loc) 1.01 kB
/** * Wrapper function for better minification (saves ~ 1kB) * * @param gl WebGL rendering context * @param parameter Context parameter */ export declare const getParameter: (gl: WebGLRenderingContext | WebGL2RenderingContext, parameter: GLenum) => any; /** * Wrapper function for better minification (saves ~ 1kB) * * @param gl WebGL rendering context * @param shaderType Shader type * @param precisionType Precision type */ export declare const getShaderPrecisionFormat: (gl: WebGLRenderingContext | WebGL2RenderingContext, shaderType: GLenum, precisionType: GLenum) => any; /** * Wrapper function for better minification (saves ~ 1kB) * * @param gl WebGL rendering context * @param extension WebGL extension */ export declare const getExtension: (gl: WebGLRenderingContext | WebGL2RenderingContext, extension: string) => any; declare const _default: any; /** * Collect and structure all major device and browser specific WebGL features */ export default _default;