PySide6.QtQuick.QSGGeometry.Attribute

class Attribute

Synopsis

Static functions

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

PySide6.QtQuick.QSGGeometry.Attribute.position
PySide6.QtQuick.QSGGeometry.Attribute.tupleSize
PySide6.QtQuick.QSGGeometry.Attribute.type
PySide6.QtQuick.QSGGeometry.Attribute.isVertexCoordinate
PySide6.QtQuick.QSGGeometry.Attribute.attributeType
PySide6.QtQuick.QSGGeometry.Attribute.reserved
static create(pos, tupleSize, primitiveType[, isPosition=false])
Parameters:
  • pos – int

  • tupleSize – int

  • primitiveType – int

  • isPosition – bool

Return type:

Attribute

Creates a new Attribute for attribute register pos with tupleSize. The primitiveType can be any of the supported types from Type , such as FloatType or UnsignedByteType .

If the attribute describes the position for the vertex, the isPosition hint should be set to true. The scene graph renderer may use this information to perform optimizations.

Use the create function to construct the attribute, rather than an initialization list, to ensure that all fields are initialized.

static createWithAttributeType(pos, tupleSize, primitiveType, attributeType)
Parameters:
  • pos – int

  • tupleSize – int

  • primitiveType – int

  • attributeTypeAttributeType

Return type:

Attribute

Creates a new Attribute for attribute register pos with tupleSize. The primitiveType can be any of the supported types from Type , such as FloatType or UnsignedByteType .

attributeType describes the intended use of the attribute.

Use the create function to construct the attribute, rather than an initialization list, to ensure that all fields are initialized.