Byte
View sourceWebGL BYTE constant (0x1400) for signed 8-bit integer data.
Enum
Provides the numeric labels for scalar data types understood by WebGL.
Each member is the corresponding WebGL enum constant. Pass a member to an
API that describes a WebGL scalar type, such as MeshAttribute.
import { GlDataType, MeshAttribute } from '@wimaengine/render-core'
const weights = new MeshAttribute('weights', 9, GlDataType.Float, 1)WebGL BYTE constant (0x1400) for signed 8-bit integer data.
WebGL UNSIGNED_BYTE constant (0x1401) for unsigned 8-bit integer data.
WebGL SHORT constant (0x1402) for signed 16-bit integer data.
WebGL UNSIGNED_SHORT constant (0x1403) for unsigned 16-bit integer data.
WebGL INT constant (0x1404) for signed 32-bit integer data.
WebGL UNSIGNED_INT constant (0x1405) for unsigned 32-bit integer data.
WebGL FLOAT constant (0x1406) for 32-bit floating-point data.