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/quick3d/imports/render/qt3dquick3drenderplugin.cpp | |
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/quick3d/imports/render/qt3dquick3drenderplugin.cpp')
-rw-r--r-- | src/quick3d/imports/render/qt3dquick3drenderplugin.cpp | 1 |
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"); |