1// Copyright (C) 2018 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_RENDER_WAITFENCE_P_H
5#define QT3DRENDER_RENDER_WAITFENCE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <Qt3DRender/qwaitfence.h>
19#include <Qt3DRender/private/framegraphnode_p.h>
20#include <Qt3DRender/private/qwaitfence_p.h>
21
22QT_BEGIN_NAMESPACE
23
24namespace Qt3DRender {
25
26namespace Render {
27
28class Q_AUTOTEST_EXPORT WaitFence : public FrameGraphNode
29{
30public:
31 WaitFence();
32 ~WaitFence();
33
34 struct Data
35 {
36 QWaitFence::HandleType handleType;
37 QVariant handle;
38 bool waitOnCPU;
39 quint64 timeout;
40 };
41
42 inline Data data() const { return m_data; }
43 void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override;
44
45private:
46 Data m_data;
47};
48
49} // namespace Render
50
51} // namespace Qt3DRender
52
53QT_END_NAMESPACE
54
55#endif // QT3DRENDER_RENDER_WAITFENCE_P_H
56

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