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_QSHADERGENERATOR_P_H
5#define QT3DRENDER_QSHADERGENERATOR_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 <Qt3DRender/private/qshadergraph_p.h>
21#include <QtCore/QLoggingCategory>
22
23
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DRender
27{
28Q_DECLARE_LOGGING_CATEGORY(ShaderGenerator)
29
30class QShaderGenerator
31{
32public:
33 Q_3DRENDERSHARED_PRIVATE_EXPORT QByteArray createShaderCode(const QStringList &enabledLayers = QStringList()) const;
34
35 QShaderGraph graph;
36 QShaderFormat format;
37};
38
39}
40Q_DECLARE_TYPEINFO(Qt3DRender::QShaderGenerator, Q_RELOCATABLE_TYPE);
41QT_END_NAMESPACE
42
43Q_DECLARE_METATYPE(Qt3DRender::QShaderGenerator)
44
45#endif // QT3DRENDER_QSHADERGENERATOR_P_H
46

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