| 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 | |
| 23 | QT_BEGIN_NAMESPACE |
| 24 | |
| 25 | namespace Qt3DRender |
| 26 | { |
| 27 | class QShaderNodePort |
| 28 | { |
| 29 | public: |
| 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 | |
| 41 | Q_3DRENDERSHARED_PRIVATE_EXPORT bool operator==(const QShaderNodePort &lhs, const QShaderNodePort &rhs) noexcept; |
| 42 | |
| 43 | inline bool operator!=(const QShaderNodePort &lhs, const QShaderNodePort &rhs) noexcept |
| 44 | { |
| 45 | return !(lhs == rhs); |
| 46 | } |
| 47 | |
| 48 | |
| 49 | } |
| 50 | Q_DECLARE_TYPEINFO(Qt3DRender::QShaderNodePort, Q_RELOCATABLE_TYPE); |
| 51 | QT_END_NAMESPACE |
| 52 | |
| 53 | Q_DECLARE_METATYPE(Qt3DRender::QShaderNodePort) |
| 54 | |
| 55 | #endif // QT3DRENDER_QSHADERNODEPORT_P_H |
| 56 |
