Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
glslsymbols_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5
6#ifndef QSSG_GLSLSYMBOLS_H
7#define QSSG_GLSLSYMBOLS_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QtQuick3DGlslParser/private/glsltype_p.h>
21#include <QtQuick3DGlslParser/private/glslsymbol_p.h>
22#include <QVector>
23#include <QString>
24#include <QHash>
25
27
28namespace GLSL {
29
30class Q_QUICK3DGLSLPARSER_EXPORT Argument: public Symbol
31{
32public:
34
35 const Type *type() const override;
36 void setType(const Type *type);
37
38 Argument *asArgument() override { return this; }
39
40private:
41 const Type *_type;
42};
43
44class Q_QUICK3DGLSLPARSER_EXPORT Variable: public Symbol
45{
46public:
48
49 const Type *type() const override;
50 void setType(const Type *type);
51
52 int qualifiers() const { return _qualifiers; }
54
55 Variable *asVariable() override { return this; }
56
57private:
58 const Type *_type;
59 int _qualifiers;
60};
61
62class Q_QUICK3DGLSLPARSER_EXPORT Block: public Scope
63{
64public:
65 Block(Scope *enclosingScope = nullptr);
66
67 QList<Symbol *> members() const override;
69
70 Block *asBlock() override { return this; }
71
72 const Type *type() const override;
73 Symbol *find(const QString &name) const override;
74
75private:
77};
78
79class Q_QUICK3DGLSLPARSER_EXPORT Namespace: public Scope
80{
81public:
82 Namespace();
84
86
87 Namespace *asNamespace() override { return this; }
88
89 QList<Symbol *> members() const override;
90 const Type *type() const override;
91 Symbol *find(const QString &name) const override;
92
93private:
96};
97
98} // namespace GLSL
99
100QT_END_NAMESPACE
101
102#endif // QSSG_GLSLSYMBOLS_H
const Type * intern(const Type &ty)
Combined button and popup list for selecting options.
bool operator()(const Type &value, const Type &other) const