QSGGeometry::Attribute Struct
struct QSGGeometry::AttributeEl QSGGeometry::Attribute describe un único atributo de vértice en un QSGGeometry. Más...
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 pista para el renderizador si este atributo es el atributo que describe la posición. El renderizador del gráfico de la escena puede utilizar esta información para realizar optimizaciones.
Contiene una serie de bits que se reservan para un 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. primitiveType puede ser cualquiera de los tipos admitidos en QSGGeometry::Type, como QSGGeometry::FloatType o QSGGeometry::UnsignedByteType.
Si el atributo describe la posición del vértice, la sugerencia isPosition debe establecerse en true. El renderizador del gráfico de la 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, para asegurarse de que todos los campos están inicializados.
[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. primitiveType puede ser cualquiera de los tipos admitidos en QSGGeometry::Type, como QSGGeometry::FloatType o QSGGeometry::UnsignedByteType.
attributeType describe el uso previsto del atributo.
Utilice la función create para construir el atributo, en lugar de una lista de inicialización, para asegurarse de que se inicializan todos los campos.
© 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.