이 페이지에서

Attribute QML Type

속성을 정의하고 버퍼에서 데이터를 읽는 방법을 지정합니다. 더 보기...

Import Statement: import Qt3D.Core 2.12
In C++: QAttribute
Status: Deprecated

이 유형은 더 이상 사용되지 않습니다. 새로운 코드에서는 이 유형을 사용하지 않는 것을 강력히 권장합니다.

상세 설명

속성에는 3가지 유형이 있습니다.

  • VertexAttribute: 정점별로 읽을 데이터를 정의하는 데 사용됩니다.
  • IndexAttribute: 인덱스 드로우 호출을 사용할 때 정점 인덱스를 정의하는 데 사용됩니다
  • DrawIndirectAttribute: 간접 드로우 호출을 사용할 때 사용할 DrawIndirect 버퍼를 지정하는 데 사용됩니다.

참고: 속성의 유형이 DrawIndirectAttribute인경우 , count, stride 및 offset만 관련이 있습니다.

사용자 정의 속성을 제공할 때는 QAttribute::defaultPositionAttributeName()과 같은 헬퍼를 사용하여 속성 이름을 지정하는 것이 좋습니다. 이렇게 하면 지오메트리가 피킹 및 Qt3DExtras 모듈에서 제공하는 다양한 머티리얼과 호환되도록 보장할 수 있습니다.

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