1// Copyright (C) 2017 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_QSHADERNODEPORT_P_H
5#define QT3DRENDER_QSHADERNODEPORT_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 purely as an
12// implementation detail. 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/private/qt3drender_global_p.h>
19
20#include <QtCore/qstring.h>
21#include <QtCore/qvariant.h>
22
23QT_BEGIN_NAMESPACE
24
25namespace Qt3DRender
26{
27class QShaderNodePort
28{
29public:
30 enum Direction : char {
31 Input,
32 Output
33 };
34
35 Q_3DRENDERSHARED_PRIVATE_EXPORT QShaderNodePort() noexcept;
36
37 QShaderNodePort::Direction direction;
38 QString name;
39};
40
41Q_3DRENDERSHARED_PRIVATE_EXPORT bool operator==(const QShaderNodePort &lhs, const QShaderNodePort &rhs) noexcept;
42
43inline bool operator!=(const QShaderNodePort &lhs, const QShaderNodePort &rhs) noexcept
44{
45 return !(lhs == rhs);
46}
47
48
49}
50Q_DECLARE_TYPEINFO(Qt3DRender::QShaderNodePort, Q_RELOCATABLE_TYPE);
51QT_END_NAMESPACE
52
53Q_DECLARE_METATYPE(Qt3DRender::QShaderNodePort)
54
55#endif // QT3DRENDER_QSHADERNODEPORT_P_H
56

source code of qt3d/src/render/shadergraph/qshadernodeport_p.h