Type alias TextureDataType
TextureDataType: "UNSIGNED_BYTE" | "UNSIGNED_SHORT_5_6_5" | "UNSIGNED_SHORT_4_4_4_4" | "UNSIGNED_SHORT_5_5_5_1" | "UNSIGNED_SHORT" | "UNSIGNED_INT" | "UNSIGNED_INT_24_8_WEBGL" | "FLOAT" | "HALF_FLOAT_OES" | "BYTE" | "UNSIGNED_SHORT" | "SHORT" | "UNSIGNED_INT" | "INT" | "HALF_FLOAT" | "FLOAT" | "UNSIGNED_INT_2_10_10_10_REV" | "UNSIGNED_INT_10F_11F_11F_REV" | "UNSIGNED_INT_5_9_9_9_REV" | "UNSIGNED_INT_24_8" | "FLOAT_32_UNSIGNED_INT_24_8_REV"
纹理数据类型
A GLenum specifying the data type of the texel data. Possible values:
When using the WEBGL_depth_texture extension:
When using the OES_texture_float extension:
When using the OES_texture_half_float extension:
When using a WebGL 2 context, the following values are available additionally: