SortPolicy QML Type
使用するソートタイプの保存場所を提供します。詳細...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QSortPolicy |
| Inherits: | |
| Status: | Deprecated |
この型は非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- sortTypes : list<int>
詳細説明
SortPolicyクラスは、FrameGraphで使用されるソートタイプを格納します。ソートタイプは、描画順序を決定するために、描画前に描画可能なエンティティがどのようにソートされるかを決定します。FrameGraphにSortPolicyが存在する場合、ソートメカニズムはsortTypes リストによって決定されます。 複数のソートタイプを同時に使用することができます。FrameGraphにSortPolicyが存在しない場合、エンティティはエンティティ階層に現れる順序で描画されます。
プロパティのドキュメント
sortTypes : list<int>
使用するソート方式を指定します。
このリストには、以下の値を含めることができます:
- StateChangeCost - 現在レンダリングされている状態からの変更コストを最小化するようにオブジェクトをソートします
- BackToFront - 反転した Z 順に基づいて、オブジェクトを奥から手前へとソートします。より正確には、ソートキーは、カメラからオブジェクトの中心へのベクトルの、カメラのビューベクトルへの投影の Z 成分です。
- Material - オブジェクトをマテリアル(シェーダー)値に基づいてソートします。
- FrontToBack - オブジェクトを前から後ろの順に並べ替えます。「BackToFront」の逆です。
- [5.14 以降] テクスチャ - テクスチャの変更を最小限に抑えるようにオブジェクトをソートします。
- [5.15以降] ユニフォーム - ユニフォームの変化を最小限に抑えるようにオブジェクトをソートします。
© 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.