En esta página

QSGGeometry::Attribute Struct

struct QSGGeometry::Attribute

El « QSGGeometry::Attribute » describe un único atributo de vértice en un « QSGGeometry ». Más información...

Miembros públicos estáticos

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

Descripción detallada

La estructura ` QSGGeometry::Attribute ` describe la posición del registro de atributos, el tamaño de la tupla de atributos y el tipo de atributo.

También contiene una indicación para el renderizador sobre si este atributo es el que describe la posición. El renderizador del grafo de escena puede utilizar esta información para realizar optimizaciones.

Contiene varios bits reservados para uso futuro.

Véase también ` QSGGeometry`.

Documentación de las funciones miembro

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

Crea un nuevo « QSGGeometry::Attribute » para el registro de atributos « pos » con « tupleSize ». El « primitiveType » puede ser cualquiera de los tipos admitidos que figuran en QSGGeometry::Type, como « QSGGeometry::FloatType » o « QSGGeometry::UnsignedByteType ».

Si el atributo describe la posición del vértice, la indicación « isPosition » debe establecerse en « true ». El renderizador del grafo de escena puede utilizar esta información para realizar optimizaciones.

Utilice la función «create» para construir el atributo, en lugar de una lista de inicialización, a fin de garantizar que todos los campos se inicialicen.

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

Crea un nuevo « QSGGeometry::Attribute » para el registro de atributos « pos » con « tupleSize ». El « primitiveType » puede ser cualquiera de los tipos admitidos que figuran en QSGGeometry::Type, como « QSGGeometry::FloatType » o « QSGGeometry::UnsignedByteType ».

attributeType describe el uso previsto del atributo.

Utiliza la función `create` para crear el atributo, en lugar de una lista de inicialización, a fin de garantizar que todos los campos se inicialicen.

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