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 の新しいQSGGeometry::AttributetupleSize と共に作成する。primitiveType は、QSGGeometry::FloatTypeQSGGeometry::UnsignedByteType など、QSGGeometry::Type でサポートされているタイプのいずれでもよい。

アトリビュートに頂点の位置が記述されている場合、isPosition ヒントはtrue に設定する必要があります。シーン グラフ レンダラーは、この情報を使用して最適化を実行する場合があります。

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

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

属性レジスタpos の新しいQSGGeometry::AttributetupleSize と共に作成する。primitiveType は、QSGGeometry::FloatTypeQSGGeometry::UnsignedByteType など、QSGGeometry::Type でサポートされているタイプのいずれでもかまいません。

attributeType には、属性の使用目的を記述します。

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

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