Type alias GLVertexAttributeTypes

GLVertexAttributeTypes: "FLOAT" | "BYTE" | "SHORT" | "UNSIGNED_BYTE" | "UNSIGNED_SHORT" | "HALF_FLOAT" | "INT" | "UNSIGNED_INT" | "INT_2_10_10_10_REV" | "UNSIGNED_INT_2_10_10_10_REV"

属性缓冲数据类型

A GLenum specifying the data type of each component in the array. Possible values:

  • gl.BYTE: signed 8-bit integer, with values in [-128, 127]
  • gl.SHORT: signed 16-bit integer, with values in [-32768, 32767]
  • gl.UNSIGNED_BYTE: unsigned 8-bit integer, with values in [0, 255]
  • gl.UNSIGNED_SHORT: unsigned 16-bit integer, with values in [0,65535]
  • gl.FLOAT: 32-bit IEEE floating point number

When using a WebGL 2 context, the following values are available additionally:

  • gl.HALF_FLOAT: 16-bit IEEE floating point number
  • gl.INT: 32-bit signed binary integer
  • gl.UNSIGNED_INT: 32-bit unsigned binary integer
  • gl.INT_2_10_10_10_REV: 32-bit signed integer with values in [-512, 511]
  • gl.UNSIGNED_INT_2_10_10_10_REV: 32-bit unsigned integer with values in [0, 1023]

Generated using TypeDoc