1// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DRENDER_QDISPATCHCOMPUTE_H
5#define QT3DRENDER_QDISPATCHCOMPUTE_H
6
7#include <Qt3DRender/qt3drender_global.h>
8#include <Qt3DRender/qframegraphnode.h>
9
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DRender {
13
14class QDispatchComputePrivate;
15
16class Q_3DRENDERSHARED_EXPORT QDispatchCompute : public QFrameGraphNode
17{
18 Q_OBJECT
19 Q_PROPERTY(int workGroupX READ workGroupX WRITE setWorkGroupX NOTIFY workGroupXChanged)
20 Q_PROPERTY(int workGroupY READ workGroupY WRITE setWorkGroupY NOTIFY workGroupYChanged)
21 Q_PROPERTY(int workGroupZ READ workGroupZ WRITE setWorkGroupZ NOTIFY workGroupZChanged)
22public:
23 explicit QDispatchCompute(Qt3DCore::QNode *parent = nullptr);
24 ~QDispatchCompute();
25
26 int workGroupX() const;
27 int workGroupY() const;
28 int workGroupZ() const;
29
30public Q_SLOTS:
31 void setWorkGroupX(int workGroupX);
32 void setWorkGroupY(int workGroupY);
33 void setWorkGroupZ(int workGroupZ);
34
35Q_SIGNALS:
36 void workGroupXChanged();
37 void workGroupYChanged();
38 void workGroupZChanged();
39
40private:
41 Q_DECLARE_PRIVATE(QDispatchCompute)
42};
43
44} // Qt3DRender
45
46QT_END_NAMESPACE
47
48#endif // QT3DRENDER_QDISPATCHCOMPUTE_H
49

source code of qt3d/src/render/framegraph/qdispatchcompute.h