Type alias VertexAttributeFormatInfo

VertexAttributeFormatInfo: {
    byteSize: 2 | 4 | 8 | 12 | 16;
    dataType: VertexDataType;
    normalized: boolean;
    numComponents: 1 | 2 | 3 | 4;
    type: GLVertexAttributeTypes;
    typedArrayConstructor: TypedArrayConstructor;
    wgslType: WGSLVertexType;
}

顶点属性格式信息

Type declaration

  • byteSize: 2 | 4 | 8 | 12 | 16

    所占字节尺寸。

  • dataType: VertexDataType

    数据类型。

  • normalized: boolean

    是否标准化。

  • numComponents: 1 | 2 | 3 | 4

    部件数量。

  • type: GLVertexAttributeTypes

    属性缓冲数据类型

    默认从Buffer数据中获取,如果未取到则默认为 "FLOAT" 。

  • typedArrayConstructor: TypedArrayConstructor

    对应类型数组构造器。

  • wgslType: WGSLVertexType

    在着色器中对应类型。

Generated using TypeDoc