Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
* Some parts of this feature may have varying levels of support.
Note: This feature is available in Web Workers.
The WebGLShaderPrecisionFormat interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
The base 2 log of the absolute value of the minimum value that can be represented.
WebGLShaderPrecisionFormat.rangeMax Read onlyThe base 2 log of the absolute value of the maximum value that can be represented.
WebGLShaderPrecisionFormat.precision Read onlyThe number of bits of precision that can be represented. For integer formats this value is always 0.
A WebGLShaderPrecisionFormat object is returned by the WebGLRenderingContext.getShaderPrecisionFormat() method.
| WebGL Specification # 5.12 |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Sep 28, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.