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
26
QT_BEGIN_NAMESPACE
27
28
namespace
GLSL
{
29
30
class
Q_QUICK3DGLSLPARSER_EXPORT
Argument
:
public
Symbol
31
{
32
public
:
33
Argument
(
Function
*
scope
);
34
35
const
Type
*
type
()
const
override
;
36
void
setType
(
const
Type
*
type
);
37
38
Argument
*
asArgument
()
override
{
return
this
; }
39
40
private
:
41
const
Type
*
_type
;
42
};
43
44
class
Q_QUICK3DGLSLPARSER_EXPORT
Variable
:
public
Symbol
45
{
46
public
:
47
Variable
(
Scope
*
scope
);
48
49
const
Type
*
type
()
const
override
;
50
void
setType
(
const
Type
*
type
);
51
52
int
qualifiers
()
const
{
return
_qualifiers
; }
53
void
setQualifiers
(
int
qualifiers
) {
_qualifiers
=
qualifiers
; }
54
55
Variable
*
asVariable
()
override
{
return
this
; }
56
57
private
:
58
const
Type
*
_type
;
59
int
_qualifiers
;
60
};
61
62
class
Q_QUICK3DGLSLPARSER_EXPORT
Block
:
public
Scope
63
{
64
public
:
65
Block
(
Scope
*
enclosingScope
=
nullptr
);
66
67
QList
<
Symbol
*>
members
()
const
override
;
68
void
add
(
Symbol
*
symbol
)
override
;
69
70
Block
*
asBlock
()
override
{
return
this
; }
71
72
const
Type
*
type
()
const
override
;
73
Symbol
*
find
(
const
QString
&
name
)
const
override
;
74
75
private
:
76
QHash
<
QString
,
Symbol
*>
_members
;
77
};
78
79
class
Q_QUICK3DGLSLPARSER_EXPORT
Namespace
:
public
Scope
80
{
81
public
:
82
Namespace
();
83
~
Namespace
()
override
;
84
85
void
add
(
Symbol
*
symbol
)
override
;
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
93
private
:
94
QHash
<
QString
,
Symbol
*>
_members
;
95
QVector
<
OverloadSet
*>
_overloadSets
;
96
};
97
98
}
// namespace GLSL
99
100
QT_END_NAMESPACE
101
102
#
endif
// QSSG_GLSLSYMBOLS_H
GLSL::Argument
Definition
glslsymbols_p.h:31
GLSL::Block
Definition
glslsymbols_p.h:63
GLSL::DiagnosticMessage
Definition
glslengine_p.h:34
GLSL::Engine
Definition
glslengine_p.h:82
GLSL::Namespace
Definition
glslsymbols_p.h:80
GLSL::TypeTable
Definition
glslengine_p.h:67
GLSL::TypeTable::intern
const Type * intern(const Type &ty)
Definition
glslengine_p.h:75
GLSL::Variable
Definition
glslsymbols_p.h:45
GLSL
Definition
glslast_p.h:26
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
GLSL::TypeTable::Compare
Definition
glslengine_p.h:69
GLSL::TypeTable::Compare::operator()
bool operator()(const Type &value, const Type &other) const
Definition
glslengine_p.h:70
qtquick3d
src
glslparser
glslsymbols_p.h
Generated on
for Qt by
1.16.1