A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/zh-CN/docs/Web/API/WebGLShaderPrecisionFormat below:

WebGLShaderPrecisionFormat - Web API | MDN

WebGLShaderPrecisionFormat

Baseline Widely available *

WebGLShaderPrecisionFormat 接口是WebGL API 的一部分,它表示通过调用WebGLRenderingContext.getShaderPrecisionFormat()返回信息的信息。

属性
WebGLShaderPrecisionFormat.rangeMin

以 2 为底的最小值的绝对值的对数。

WebGLShaderPrecisionFormat.rangeMax

可以表示的最大值的绝对值的底数为 2 的对数。

WebGLShaderPrecisionFormat.precision

可以表示的精度位的数目。对于整数类型,这个值总是 0。

示例

WebGLShaderPrecisionFormat 对象通过WebGLRenderingContext.getShaderPrecisionFormat() 方法来返回。

var canvas = document.getElementById("canvas");
var gl = canvas.getContext("webgl");
gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_FLOAT);
// WebGLShaderPrecisionFormat { rangeMin: 127, rangeMax: 127, precision: 23 }
规格 浏览器兼容性 参见

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4