WEBGL_compressed_texture_astc.getSupportedProfiles() method returns an array of strings containing the names of the ASTC profiles supported by the implementation.

句法

sequence<DOMString> ext.getSupportedProfiles();
					

返回值

数组 of DOMString elements indicating which ASTC profiles are supported by the implementation. Currently, this can be:

  • "ldr": Low Dynamic Range.
  • "hdr": High Dynamic Range.

Dynamic range refers to ratio between the brightest and darkest parts of the scene. Low dynamic ranges are for example JPEG format images which won't exceed 255:1, or CRT monitors which won't exceed 100:1. An HDR image stores pixel values that span the whole tonal range of real-world scenes (100,000:1).

范例

var ext = gl.getExtension('WEBGL_compressed_texture_astc');
ext.getSupportedProfiles(); // ["ldr"]
					

规范

规范 状态 注释
WEBGL_compressed_texture_astc
The definition of 'WEBGL_compressed_texture_astc' in that specification.
推荐 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
getSupportedProfiles Chrome 47 Edge 79 Firefox 53 IE ? Opera ? Safari ? WebView Android 47 Chrome Android 47 Firefox Android 53 Opera Android ? Safari iOS ? Samsung Internet Android 5.0

图例

完整支持

完整支持

兼容性未知 ?

兼容性未知

另请参阅

元数据

  • 最后修改: