Attribute QML Type
Bufferからどのようにデータを読み込むかを定義します。詳細...
Import Statement: | import Qt3D.Core 2.8 |
In C++: | QAttribute |
Status: | Deprecated |
詳細説明
アトリビュートには3種類あります。
- VertexAttribute:頂点ごとに読み込むデータを定義するために使用します。
- IndexAttribute:インデックス化された描画呼び出しが使用される場合に、頂点インデックスを定義するために使用されます。
- DrawIndirectAttribute: 間接描画呼び出しが使用される場合に使用される DrawIndirect バッファを指定するために使用されます。
注意: アトリビュートがDrawIndirectAttribute型の場合、count、stride、offsetのみが関連する。
独自のアトリビュートを提供する場合、QAttribute::defaultPositionAttributeName() のようなヘルパーを使用してアトリビュートに名前を付けることは理にかなっているかもしれません。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.