In questa pagina

QSGGeometry::Attribute Struct

struct QSGGeometry::Attribute

L'QSGGeometry::Attribute descrive un singolo attributo di vertice in un QSGGeometry. Per saperne di più...

Membri pubblici statici

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

Descrizione dettagliata

La struttura ` QSGGeometry::Attribute ` descrive la posizione nel registro degli attributi, la dimensione della tupla dell'attributo e il tipo di attributo.

Contiene inoltre un'indicazione per il renderer nel caso in cui questo attributo sia quello che descrive la posizione. Il renderer del grafo di scena può utilizzare queste informazioni per eseguire ottimizzazioni.

Contiene una serie di bit riservati per uso futuro.

Vedi anche ` QSGGeometry`.

Documentazione delle funzioni membro

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

Crea un nuovo " QSGGeometry::Attribute " per il registro degli attributi " pos " con " tupleSize". Il " primitiveType " può essere uno qualsiasi dei tipi supportati elencati su QSGGeometry::Type, come ad esempio " QSGGeometry::FloatType " o " QSGGeometry::UnsignedByteType".

Se l’attributo descrive la posizione del vertice, il suggerimento isPosition deve essere impostato su true. Il renderer del grafo di scena può utilizzare queste informazioni per eseguire ottimizzazioni.

Utilizzare la funzione create per costruire l’attributo, anziché un elenco di inizializzazione, per garantire che tutti i campi siano inizializzati.

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

Crea un nuovo oggetto ` QSGGeometry::Attribute ` per il registro degli attributi pos con ` tupleSize`. Il valore ` primitiveType ` può essere uno qualsiasi dei tipi supportati elencati su QSGGeometry::Type, come ad esempio QSGGeometry::FloatType o QSGGeometry::UnsignedByteType.

attributeType descrive l’uso previsto dell’attributo.

Utilizzare la funzione create per costruire l'attributo, anziché un elenco di inizializzazione, per garantire che tutti i campi siano inizializzati.

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