数据
Components in one logical scalar, vector, or square-matrix value.
Optionalparams: GeometryDataParameters
初始化参数,所有params都会复制到实例上
Readonlyclass类名
ReadonlyidReadonlyisisGeometryData
Whether integer data values should be normalized when being casted to a float.
Components in one logical vertex value. Matrices use 9 (mat3) or 16 (mat4);
mat2 shares the four-component representation with vec4.
The data type of each component in the array.
Most recent revision that requires a complete backend upload.
An offset in bytes of the first component in the vertex attribute array. Must be a multiple of type.
An offset in bytes of the first component in the vertex attribute array. Must be a multiple of type.
Monotonic CPU-data revision used by every graphics backend resource cache.
The offset in bytes between the beginning of consecutive vertex attributes.
The offset in bytes between the beginning of consecutive vertex attributes.
清除 subData
clone
Get the value by index. Please note that it will return the same reference for performance reasons. If you want to get a copy, use #getCopy instead.
获取数据大小,单位为字节
数据大小
Get the value by index. It will return a copy of value.
获取偏移值
Return partial writes newer than a backend-local revision. null means that backend must
perform a full upload because a whole-data edit occurred or bounded history was compacted.
Optionaltransform: (component: number, index: number) => number
geometry vertex data