summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/qsortpolicy.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-10-17 13:10:29 +0200
committerTony Sarajärvi <tony.sarajarvi@qt.io>2017-10-20 16:05:51 +0000
commit294eefef0f8cfdba2edd73b5bd2ba7435b102ce5 (patch)
treeaf0f17e8e789c777401a88206b1c3503241439ea /src/render/framegraph/qsortpolicy.cpp
parent4b44d9b327457135b589d87202966cdbb9c5cd14 (diff)
Fix SortPolicy sorting key generation
Change-Id: Ib06d84088d93e00ffdcaa6baa9d34e03358943cb Reviewed-by: Svenn-Arne Dragly <svenn-arne.dragly@qt.io> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/render/framegraph/qsortpolicy.cpp')
-rw-r--r--src/render/framegraph/qsortpolicy.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/render/framegraph/qsortpolicy.cpp b/src/render/framegraph/qsortpolicy.cpp
index b1e0f4956..e5a6e096c 100644
--- a/src/render/framegraph/qsortpolicy.cpp
+++ b/src/render/framegraph/qsortpolicy.cpp
@@ -88,10 +88,20 @@ QSortPolicyPrivate::QSortPolicyPrivate()
/*!
\enum QSortPolicy::SortType
- This enum type describes sort types that can be employed
- \value StateChangeCost sort the objects so as to minimize the cost of changing from the currently rendered state
- \value BackToFront sort the objects from back to front inverted z order
+ This enum type describes the available sort types.
+
+ \value StateChangeCost sort the objects so as to minimize the cost of
+ changing from the currently rendered state
+
+ \value BackToFront sort the objects from back to front based on inverted z
+ order. More accurately, the sorting key is the z component of the
+ projection of the camera-to-object-center vector onto the camera's view
+ vector.
+
\value Material sort the objects based on their material value
+
+ \value FrontToBack sort the objects from front to back. The opposite of
+ BackToFront.
*/
/*!