summaryrefslogtreecommitdiffstats
path: root/src/quick3d/imports/render/qt3dquick3drenderplugin.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2018-10-30 15:30:52 +0100
committerPaul Lemire <paul.lemire@kdab.com>2018-11-14 06:16:56 +0000
commitf1b333c36a19cf85eab798fc1b1952ed063fedfe (patch)
treebed08fc0bd5d4a4e925d368786f3e8398e2ec908 /src/quick3d/imports/render/qt3dquick3drenderplugin.cpp
parenta3761a118f07dd3d4bebc3b28fff01b5f91a0016 (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/quick3d/imports/render/qt3dquick3drenderplugin.cpp')
-rw-r--r--src/quick3d/imports/render/qt3dquick3drenderplugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick3d/imports/render/qt3dquick3drenderplugin.cpp b/src/quick3d/imports/render/qt3dquick3drenderplugin.cpp
index 98ac869c2..4c8e2c0ca 100644
--- a/src/quick3d/imports/render/qt3dquick3drenderplugin.cpp
+++ b/src/quick3d/imports/render/qt3dquick3drenderplugin.cpp
@@ -233,6 +233,7 @@ void Qt3DQuick3DRenderPlugin::registerTypes(const char *uri)
// Compute Job
qmlRegisterType<Qt3DRender::QComputeCommand>(uri, 2, 0, "ComputeCommand");
+ qmlRegisterType<Qt3DRender::QComputeCommand, 13>(uri, 2, 13, "ComputeCommand");
// Layers
qmlRegisterType<Qt3DRender::QLayer>(uri, 2, 0, "Layer");