このページでは

QSGGeometry::Attribute Struct

struct QSGGeometry::Attribute

QSGGeometry::Attribute は、QSGGeometry 内の単一の頂点属性を記述します。詳細...

静的パブリックメンバー

QSGGeometry::Attribute create(int pos, int tupleSize, int primitiveType, bool isPosition = false)
QSGGeometry::Attribute createWithAttributeType(int pos, int tupleSize, int primitiveType, QSGGeometry::AttributeType attributeType)

詳細な説明

QSGGeometry::Attribute 構造体は、属性レジスタの位置、属性タプルのサイズ、および属性の型を表します。

また、この属性が位置を表す属性であるかどうかをレンダラーに示すヒントも含まれています。シーングラフ・レンダラーは、この情報を使用して最適化を行うことができます。

将来の使用のために予約されているビットがいくつか含まれています。

QSGGeometryも参照してください 。

メンバ関数のドキュメント

[static] QSGGeometry::Attribute Attribute::create(int pos, int tupleSize, int primitiveType, bool isPosition = false)

属性レジスタ `pos ` に対して、tupleSize を持つ新しい `QSGGeometry::Attribute ` を作成します。`primitiveType ` は、QSGGeometry::Type に記載されているサポートされている型のいずれか(例:QSGGeometry::FloatType やQSGGeometry::UnsignedByteType など)に指定できます。

この属性が頂点の位置を表す場合、isPosition ヒントはtrue に設定する必要があります。シーングラフレンダラーはこの情報を使用して最適化を行うことがあります。

すべてのフィールドが確実に初期化されるように、初期化リストではなく create 関数を使用して属性を構築してください。

[static] QSGGeometry::Attribute Attribute::createWithAttributeType(int pos, int tupleSize, int primitiveType, QSGGeometry::AttributeType attributeType)

属性レジスタpos に対して、tupleSize を持つ新しいQSGGeometry::Attribute を作成します。primitiveType は、QSGGeometry::Type でサポートされている任意の型(QSGGeometry::FloatType やQSGGeometry::UnsignedByteType など)を指定できます。

attributeType この属性の用途を説明します。

すべてのフィールドが確実に初期化されるように、初期化リストではなく create 関数を使用して属性を構築してください。

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