|
AnyCAD Rapid API 2026
Help you to create a better world!
|
缓冲区属性类 更多...
Public 成员函数 | |
| BufferAttribute (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| ArrayBufferView | GetData () |
| void | SetData (ArrayBufferView val) |
| EnumAttributeSemantic | GetSemantic () |
| void | SetSemantic (EnumAttributeSemantic val) |
| 属性语义(位置/法线/UV等) | |
| EnumAttributeComponents | GetComponents () |
| void | SetComponents (EnumAttributeComponents val) |
| 每个顶点的分量数量 | |
| uint | GetByteStride () |
| void | SetByteStride (uint val) |
| 字节步长(交错布局时使用) | |
| uint | GetByteOffset () |
| void | SetByteOffset (uint val) |
| 字节偏移 | |
| EnumBufferDataUsage | GetDataUsage () |
| void | SetDataUsage (EnumBufferDataUsage val) |
| 数据使用模式 | |
| uint | GetDivisor () |
| void | SetDivisor (uint val) |
| 实例化除数 | |
| bool | GetNormalized () |
| void | SetNormalized (bool val) |
| 是否归一化 | |
| uint | GetUpdateVersion () |
| EnumDataType | GetDataType () |
| 获取数据类型 | |
| uint | GetCount () |
| 获取元素数量 | |
| uint | GetByteSize () |
| 获取字节大小 | |
| void | RequestUpdate () |
| 请求更新 | |
缓冲区属性类
表示几何体的顶点属性(如位置、法线、UV等)。 封装了属性数据、语义、分量数量等信息,用于GPU渲染。
| uint AnyCAD.Foundation.BufferAttribute.GetByteSize | ( | ) |
获取字节大小
| uint AnyCAD.Foundation.BufferAttribute.GetCount | ( | ) |
获取元素数量
根据字节长度和数据类型大小计算
| EnumDataType AnyCAD.Foundation.BufferAttribute.GetDataType | ( | ) |
获取数据类型
| void AnyCAD.Foundation.BufferAttribute.RequestUpdate | ( | ) |
请求更新
递增更新版本号,通知渲染系统数据已改变