EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

WebGLShaderPrecisionFormat object

Provides the precision, rangeMin, and rangeMax properties returned by the getShaderPrecisionFormat method.

IE11

 

Syntax


<body>
  <canvas id="canvas"></canvas>
  ...
<script>
  var gl = document.getElementById("canvas").getContext("experimental-webgl");
  ...
var shaderPrecisionFormat = gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_FLOAT); 

DOM Information

Inheritance Hierarchy

The WebGLShaderPrecisionFormat does not inherit from any class or interface.

Members

The WebGLShaderPrecisionFormat object has these types of members:

Properties

The WebGLShaderPrecisionFormat object has these properties.

PropertyAccess typeDescription

precision

Read-only

Represents the precision in bits for a given data type.

rangeMax

Read-only

Gets the maximum positive value in log base 2 that can be represented by a type.

rangeMin

Read-only

Returns the base 2 log of the absolute value of the minimum value that can be represented.

 

Remarks

This object is returned using the getShaderPrecisionFormat method.

 

 

Mostrar:
© 2014 Microsoft