EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

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.

 

 

표시:
© 2014 Microsoft