1 | // Copyright (C) 2021 The Qt Company Ltd. |
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 QSPIRVSHADERREMAP_P_H |
5 | #define QSPIRVSHADERREMAP_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 a number of Qt sources files. This header file may change from |
13 | // version to version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtShaderTools/private/qtshadertoolsglobal_p.h> |
19 | #include "qspirvshader_p.h" |
20 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | class Q_SHADERTOOLS_PRIVATE_EXPORT QSpirvShaderRemapper |
24 | { |
25 | public: |
26 | QByteArray remap(const QByteArray &ir, QSpirvShader::RemapFlags flags); |
27 | QString errorMessage() const { return remapErrorMsg; } |
28 | |
29 | private: |
30 | void remapErrorHandler(const std::string &s); |
31 | void remapLogHandler(const std::string &s); |
32 | |
33 | QString remapErrorMsg; |
34 | }; |
35 | |
36 | QT_END_NAMESPACE |
37 | |
38 | #endif |
39 | |