files/en-us/web/api/webglshaderprecisionformat/index.md
{{APIRef("WebGL")}}{{AvailableInWorkers}}
The WebGLShaderPrecisionFormat interface is part of the WebGL API and represents the information returned by calling the {{domxref("WebGLRenderingContext.getShaderPrecisionFormat()")}} method.
A WebGLShaderPrecisionFormat object is returned by the {{domxref("WebGLRenderingContext.getShaderPrecisionFormat()")}} method.
const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_FLOAT);
// WebGLShaderPrecisionFormat { rangeMin: 127, rangeMax: 127, precision: 23 }
{{Specifications}}
{{Compat}}