SortPolicy QML Type

使用するソートタイプのストレージを提供する。詳細...

Import Statement: import Qt3D.Render 2.8
In C++: QSortPolicy
Inherits:

FrameGraphNode

Status: Deprecated

プロパティ

詳細説明

SortPolicyクラスは、FrameGraphが使用するソートタイプを格納する。ソートタイプは、描画順序を決定するために、描画前に描画可能なエンティティがどのようにソートされるかを決定する。SortPolicyがFrameGraphに存在する場合、ソートのメカニズムはsortTypes リストによって決定されます。複数のソートタイプを同時に使用することができる。SortPolicyがFrameGraphに存在しない場合、エンティティはエンティティ階層に表示される順序で描画されます。

プロパティ ドキュメント

sortTypes : list<int>

使用するソートタイプを指定します。

このリストには、以下の値を含めることができる:

  • StateChangeCost - 現在レンダリングされている状態から変更するコストを最小化するようにオブジェクトをソートする。
  • BackToFront - 反転Z順序に基づいて、オブジェクトを後ろから前に並べ替えます。より正確には、ソートのキーは、カメラのビューベクトルへのカメラからオブジェクトの中心へのベクトルの投影のz成分です。
  • Material - マテリアル(シェーダ)の値に基づいてオブジェクトをソートします。
  • FrontToBack - オブジェクトを前から後ろに並べ替えます。BackToFrontの逆。
  • [5.14以降] Texture(テクスチャ) - テクスチャの変化を最小限にするようにオブジェクトを並べ替えます。
  • [5.15 以降] Uniform - ユニフォームの変化を最小限にするようにオブジェクトをソートします。

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