访问器:描述如何从 BufferView 中读取类型化数组数据
Accessor
01 Syntax
Microsoft.VisualBasic.Imaging.Landscape.Gltf.Accessor
02 Properties
| Name | Overloads | Summary |
|---|---|---|
| ComponentType | 1 | 组件类型:5120=BYTE, 5121=UNSIGNED_BYTE, 5122=SHORT, 5123=UNSIGNED_SHORT, 5125=UNSIGNED_INT, 5126=FLOAT |
| ElementType | 1 | 数据类型:"SCALAR", "VEC2", "VEC3", "VEC4", "MAT2", "MAT3", "MAT4" |
| NumComponents | 1 | 获取每个元素的组件数量 |
| ComponentSize | 1 | 获取每个组件的字节大小 |
| BufferViewIndex | 1 | |
| ByteOffset | 1 | |
| Count | 1 | |
| Max | 1 | |
| Min | 1 |
03 Members
ComponentType
组件类型:5120=BYTE, 5121=UNSIGNED_BYTE, 5122=SHORT, 5123=UNSIGNED_SHORT, 5125=UNSIGNED_INT, 5126=FLOAT
ElementType
数据类型:"SCALAR", "VEC2", "VEC3", "VEC4", "MAT2", "MAT3", "MAT4"
NumComponents
获取每个元素的组件数量
ComponentSize
获取每个组件的字节大小
BufferViewIndex
ByteOffset
Count
Max
Min