diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2018-10-30 15:30:52 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2018-11-14 06:16:56 +0000 |
commit | f1b333c36a19cf85eab798fc1b1952ed063fedfe (patch) | |
tree | bed08fc0bd5d4a4e925d368786f3e8398e2ec908 /src/render/frontend/qcomputecommand_p.h | |
parent | a3761a118f07dd3d4bebc3b28fff01b5f91a0016 (diff) |
QComputeCommand allow to control the run behavior
It can either be Continuous, like it was until now or Manual.
When in manual mode, the compute shader will only be executed
by calling trigger()
Change-Id: Icaae24f4691ccd821297f967d564e7a883fa60b5
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qcomputecommand_p.h')
-rw-r--r-- | src/render/frontend/qcomputecommand_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render/frontend/qcomputecommand_p.h b/src/render/frontend/qcomputecommand_p.h index 874edb1fc..fc3376d5b 100644 --- a/src/render/frontend/qcomputecommand_p.h +++ b/src/render/frontend/qcomputecommand_p.h @@ -52,6 +52,7 @@ // #include <Qt3DCore/private/qcomponent_p.h> +#include <Qt3DRender/qcomputecommand.h> #include <Qt3DRender/private/qt3drender_global_p.h> QT_BEGIN_NAMESPACE @@ -66,6 +67,10 @@ public: int m_workGroupX; int m_workGroupY; int m_workGroupZ; + QComputeCommand::RunType m_runType; + int m_frameCount; + + void setFrameCount(int frameCount); }; struct QComputeCommandData @@ -73,6 +78,8 @@ struct QComputeCommandData int workGroupX; int workGroupY; int workGroupZ; + QComputeCommand::RunType runType; + int frameCount; }; } // Qt3DRender |