Nesta página

QSGGeometry::Attribute Struct

struct QSGGeometry::Attribute

O atributo “ QSGGeometry::Attribute ” descreve um único atributo de vértice em um “ QSGGeometry ”. Mais...

Membros 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)

Descrição detalhada

A estrutura ` QSGGeometry::Attribute ` descreve a posição no registro de atributos, o tamanho da tupla de atributos e o tipo de atributo.

Ela também contém uma dica para o renderizador caso esse atributo seja o que descreve a posição. O renderizador do grafo de cena pode usar essas informações para realizar otimizações.

Ela contém vários bits reservados para uso futuro.

Veja também ` QSGGeometry`.

Documentação das funções de membro

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

Cria um novo registro de atributo ( QSGGeometry::Attribute ) para o registro de atributo pos com o valor tupleSize. O valor do registro de atributo ( primitiveType ) pode ser qualquer um dos tipos suportados em QSGGeometry::Type, tais como QSGGeometry::FloatType ou QSGGeometry::UnsignedByteType.

Se o atributo descrever a posição do vértice, a dica isPosition deve ser definida como true. O renderizador do grafo de cena pode usar essas informações para realizar otimizações.

Use a função `create` para construir o atributo, em vez de uma lista de inicialização, a fim de garantir que todos os campos sejam inicializados.

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

Cria um novo registro de atributo ( QSGGeometry::Attribute ) para o registro de atributos pos com tupleSize. O valor do atributo ( primitiveType ) pode ser qualquer um dos tipos suportados em QSGGeometry::Type, como QSGGeometry::FloatType ou QSGGeometry::UnsignedByteType.

attributeType descreve o uso pretendido do atributo.

Use a função `create` para construir o atributo, em vez de uma lista de inicialização, a fim de garantir que todos os campos sejam inicializados.

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