このページでは

Attribute QML Type

属性と、バッファからデータをどのように読み取るかを定義します。詳細...

Import Statement: import Qt3D.Core 2.12
In C++: QAttribute
Status: Deprecated

この型は非推奨です。新しいコードでの使用は強く推奨しません。

詳細な説明

属性には3つのタイプがあります。

  • VertexAttribute:頂点ごとに読み込むデータを定義するために使用されます
  • IndexAttribute:インデックス付き描画コールを使用する場合に、頂点インデックスを定義するために使用されます
  • DrawIndirectAttribute:間接ドローコールを使用する場合に、使用する DrawIndirect バッファを指定するために使用されます

注: 属性が DrawIndirectAttribute 型の場合 、count、stride、offset のみが関連します。

独自の属性を指定する場合、QAttribute::defaultPositionAttributeName() などのヘルパー関数を使用して属性に名前を付けるとよいでしょう。そうすることで、ジオメトリがピッキングや、Qt3DExtras モジュールで提供されるさまざまなマテリアルと互換性を持つようになります。

© 2026 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.