Namespace: capabilities

capabilities

WebGL 能力

Members Show Inherited

staticcapabilities.isWebGL2boolean

是否是 WebGL2

staticcapabilities.MAX_TEXTURE_INDEXNumber

最大纹理数量

staticcapabilities.MAX_PRECISIONString

最高着色器精度, 可以是以下值:highp, mediump, lowp

staticcapabilities.MAX_VERTEX_PRECISIONString

最高顶点着色器精度, 可以是以下值:highp, mediump, lowp

staticcapabilities.MAX_FRAGMENT_PRECISIONString

最高片段着色器精度, 可以是以下值:highp, mediump, lowp

staticcapabilities.VERTEX_TEXTURE_FLOATBoolean

顶点浮点数纹理

staticcapabilities.FRAGMENT_TEXTURE_FLOATBoolean

片段浮点数纹理

staticcapabilities.MAX_TEXTURE_MAX_ANISOTROPYNumber

MAX_TEXTURE_MAX_ANISOTROPY

staticcapabilities.MAX_RENDERBUFFER_SIZEnumber

staticcapabilities.MAX_COMBINED_TEXTURE_IMAGE_UNITSnumber

staticcapabilities.MAX_CUBE_MAP_TEXTURE_SIZEnumber

staticcapabilities.MAX_FRAGMENT_UNIFORM_VECTORSnumber

staticcapabilities.MAX_TEXTURE_IMAGE_UNITSnumber

staticcapabilities.MAX_TEXTURE_SIZEnumber

staticcapabilities.MAX_VARYING_VECTORSnumber

staticcapabilities.MAX_VERTEX_ATTRIBSnumber

staticcapabilities.MAX_VERTEX_TEXTURE_IMAGE_UNITSnumber

staticcapabilities.MAX_VERTEX_UNIFORM_VECTORSnumber

Methods Show Inherited

staticcapabilities.init(gl)

初始化

Name Type Description
gl WebGLRenderingContext

staticcapabilities.get(name){Number|String}

获取 WebGL 能力

Name Type Description
name String
Returns:
Type Description
Number | String

staticcapabilities.getMaxPrecision(a, b){String}

获取最大支持精度

Name Type Description
a String
b String
Returns:
Type Description
String