QSGGeometry::Attribute Struct
struct QSGGeometry::AttributeQSGGeometry::Attribute 는 QSGGeometry 내의 단일 정점 속성을 설명합니다. 더 보기...
정적 공용 멤버
| QSGGeometry::Attribute | create(int pos, int tupleSize, int primitiveType, bool isPosition = false) |
| QSGGeometry::Attribute | createWithAttributeType(int pos, int tupleSize, int primitiveType, QSGGeometry::AttributeType attributeType) |
상세 설명
QSGGeometry::Attribute 구조체는 속성 레지스터 위치, 속성 튜플의 크기 및 속성 유형을 설명합니다.
또한 이 속성이 위치를 설명하는 속성인지 여부에 대한 힌트를 렌더러에 제공합니다. 씬 그래프 렌더러는 이 정보를 사용하여 최적화를 수행할 수 있습니다.
이 구조체에는 향후 사용을 위해 예약된 여러 비트가 포함되어 있습니다.
QSGGeometry도 참조하십시오 .
멤버 함수 문서
[static] QSGGeometry::Attribute Attribute::create(int pos, int tupleSize, int primitiveType, bool isPosition = false)
속성 레지스터 pos 에 대해 tupleSize 를 가진 새로운 QSGGeometry::Attribute 을 생성합니다. primitiveType 는 QSGGeometry::Type 에서 지원하는 유형(예: QSGGeometry::FloatType 또는 QSGGeometry::UnsignedByteType) 중 하나일 수 있습니다.
이 속성이 정점의 위치를 나타내는 경우, isPosition 힌트는 true 로 설정해야 합니다. 씬 그래프 렌더러는 이 정보를 사용하여 최적화를 수행할 수 있습니다.
모든 필드가 초기화되도록 보장하려면 초기화 목록 대신 create 함수를 사용하여 속성을 생성하십시오.
[static] QSGGeometry::Attribute Attribute::createWithAttributeType(int pos, int tupleSize, int primitiveType, QSGGeometry::AttributeType attributeType)
속성 레지스터 pos 에 대해 tupleSize 를 사용하여 새로운 속성 레지스터( QSGGeometry::Attribute )를 생성합니다. primitiveType 는 QSGGeometry::Type 에서 지원하는 유형(예: QSGGeometry::FloatType 또는 QSGGeometry::UnsignedByteType) 중 하나일 수 있습니다.
attributeType 이 속성의 사용 목적을 설명합니다.
모든 필드가 초기화되도록 하려면 초기화 목록 대신 create 함수를 사용하여 속성을 생성하십시오.
© 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.