summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-10-30 08:42:18 +0100
committerLiang Qi <liang.qi@qt.io>2017-10-31 09:19:01 +0100
commit4c32d8f66280b8db9256f199afb2bae6b92ad7a5 (patch)
tree81d6ad319b4d48faba7f829054d1ef113ff465d4 /src/render/framegraph
parentced895b361e4fff97f1b2d21e7f1bb33c82f34cd (diff)
parent294eefef0f8cfdba2edd73b5bd2ba7435b102ce5 (diff)
Merge remote-tracking branch 'origin/5.9' into 5.10
Conflicts: .qmake.conf src/render/backend/renderview.cpp src/render/backend/renderview_p.h Change-Id: I6c1122632f2c481da31a63e3abd42b760d1ff211
Diffstat (limited to 'src/render/framegraph')
-rw-r--r--src/render/framegraph/qbuffercapture.cpp5
-rw-r--r--src/render/framegraph/qframegraphnodecreatedchange.cpp6
-rw-r--r--src/render/framegraph/qsortpolicy.cpp16
3 files changed, 24 insertions, 3 deletions
diff --git a/src/render/framegraph/qbuffercapture.cpp b/src/render/framegraph/qbuffercapture.cpp
index 602ad5d6d..d1d301077 100644
--- a/src/render/framegraph/qbuffercapture.cpp
+++ b/src/render/framegraph/qbuffercapture.cpp
@@ -58,6 +58,11 @@ QBufferCapturePrivate::QBufferCapturePrivate()
}
+/*!
+ \class Qt3DRender::QBufferCapture
+ \inmodule Qt3DRender
+ \brief Exchanges buffer data between GPU and CPU.
+*/
QBufferCapture::QBufferCapture(Qt3DCore::QNode *parent)
: QFrameGraphNode(*new QBufferCapturePrivate, parent)
{
diff --git a/src/render/framegraph/qframegraphnodecreatedchange.cpp b/src/render/framegraph/qframegraphnodecreatedchange.cpp
index 1f04a099d..ef51d5228 100644
--- a/src/render/framegraph/qframegraphnodecreatedchange.cpp
+++ b/src/render/framegraph/qframegraphnodecreatedchange.cpp
@@ -48,6 +48,12 @@ QFrameGraphNodeCreatedChangeBasePrivate::QFrameGraphNodeCreatedChangeBasePrivate
{
}
+/*!
+ \class Qt3DRender::QFrameGraphNodeCreatedChangeBase
+ \inmodule Qt3DRender
+
+ \brief A base class for changes in the FrameGraphNode.
+*/
QFrameGraphNodeCreatedChangeBase::QFrameGraphNodeCreatedChangeBase(const QFrameGraphNode *node)
: Qt3DCore::QNodeCreatedChangeBase(*new QFrameGraphNodeCreatedChangeBasePrivate(node), node)
{
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.
*/
/*!