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
glsltype_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_GLSLTYPE_H
7#define QSSG_GLSLTYPE_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/glsl_p.h>
21#include <QString>
22
23QT_BEGIN_NAMESPACE
24
25namespace GLSL {
26
27class Q_QUICK3DGLSLPARSER_EXPORT Type
28{
29public:
30 virtual ~Type();
31
32 virtual QString toString() const = 0;
33
34 virtual const UndefinedType *asUndefinedType() const { return nullptr; }
35 virtual const VoidType *asVoidType() const { return nullptr; }
36 virtual const BoolType *asBoolType() const { return nullptr; }
37 virtual const IntType *asIntType() const { return nullptr; }
38 virtual const UIntType *asUIntType() const { return nullptr; }
39 virtual const FloatType *asFloatType() const { return nullptr; }
40 virtual const DoubleType *asDoubleType() const { return nullptr; }
41 virtual const ScalarType *asScalarType() const { return nullptr; }
42 virtual const IndexType *asIndexType() const { return nullptr; }
43 virtual const VectorType *asVectorType() const { return nullptr; }
44 virtual const MatrixType *asMatrixType() const { return nullptr; }
45 virtual const ArrayType *asArrayType() const { return nullptr; }
46 virtual const SamplerType *asSamplerType() const { return nullptr; }
47 virtual const OverloadSet *asOverloadSetType() const { return nullptr; }
48
49 virtual const Struct *asStructType() const { return nullptr; }
50 virtual const Function *asFunctionType() const { return nullptr; }
51
52 virtual bool isEqualTo(const Type *other) const = 0;
53 virtual bool isLessThan(const Type *other) const = 0;
54};
55
56} // namespace GLSL
57
58QT_END_NAMESPACE
59
60#endif // QSSG_GLSLTYPE_H
Combined button and popup list for selecting options.