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)
tupleSize 으로 pos 속성 등록에 대해 QSGGeometry::Attribute 을 새로 만듭니다. primitiveType 은 QSGGeometry::FloatType 또는 QSGGeometry::UnsignedByteType 과 같이 QSGGeometry::Type 에서 지원되는 모든 유형이 될 수 있습니다.
속성이 버텍스의 위치를 설명하는 경우 isPosition 힌트를 true
으로 설정해야 합니다. 씬 그래프 렌더러는 이 정보를 사용하여 최적화를 수행할 수 있습니다.
모든 필드가 초기화되도록 하려면 초기화 목록이 아닌 생성 함수를 사용하여 속성을 구성하세요.
[static]
QSGGeometry::Attribute Attribute::createWithAttributeType(int pos, int tupleSize, int primitiveType, QSGGeometry::AttributeType attributeType)
tupleSize 으로 pos 속성 등록에 대해 QSGGeometry::Attribute 을 새로 만듭니다. primitiveType 은 QSGGeometry::FloatType 또는 QSGGeometry::UnsignedByteType 과 같이 QSGGeometry::Type 에서 지원되는 유형 중 하나 일 수 있습니다.
attributeType 는 속성의 용도를 설명합니다.
모든 필드가 초기화되도록 하려면 초기화 목록이 아닌 create 함수를 사용하여 속성을 구성하세요.
© 2025 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.