summaryrefslogtreecommitdiff
path: root/src/render/shadergraph/qshadernodeport.cpp
blob: 8fef0cf7b32d701cb3605cfd542d198c8a915124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#include "qshadernodeport_p.h"

QT_BEGIN_NAMESPACE

namespace Qt3DRender
{
QShaderNodePort::QShaderNodePort() noexcept
    : direction(Output)
{
}

bool operator==(const QShaderNodePort &lhs, const QShaderNodePort &rhs) noexcept
{
    return lhs.direction == rhs.direction
        && lhs.name == rhs.name;
}
}

QT_END_NAMESPACE