Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QSSG_GLSLTYPE_H
5#define QSSG_GLSLTYPE_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 <QtQuick3DGlslParser/private/glsl_p.h>
19#include <QString>
20
22
23namespace GLSL {
24
25class Q_QUICK3DGLSLPARSER_EXPORT Type
26{
27public:
28 virtual ~Type();
29
30 virtual QString toString() const = 0;
31
32 virtual const UndefinedType *asUndefinedType() const { return nullptr; }
33 virtual const VoidType *asVoidType() const { return nullptr; }
34 virtual const BoolType *asBoolType() const { return nullptr; }
35 virtual const IntType *asIntType() const { return nullptr; }
36 virtual const UIntType *asUIntType() const { return nullptr; }
37 virtual const FloatType *asFloatType() const { return nullptr; }
38 virtual const DoubleType *asDoubleType() const { return nullptr; }
39 virtual const ScalarType *asScalarType() const { return nullptr; }
40 virtual const IndexType *asIndexType() const { return nullptr; }
41 virtual const VectorType *asVectorType() const { return nullptr; }
42 virtual const MatrixType *asMatrixType() const { return nullptr; }
43 virtual const ArrayType *asArrayType() const { return nullptr; }
44 virtual const SamplerType *asSamplerType() const { return nullptr; }
45 virtual const OverloadSet *asOverloadSetType() const { return nullptr; }
46
47 virtual const Struct *asStructType() const { return nullptr; }
48 virtual const Function *asFunctionType() const { return nullptr; }
49
50 virtual bool isEqualTo(const Type *other) const = 0;
51 virtual bool isLessThan(const Type *other) const = 0;
52};
53
54} // namespace GLSL
55
57
58#endif // QSSG_GLSLTYPE_H
virtual const UndefinedType * asUndefinedType() const
Definition glsltype_p.h:32
virtual const ScalarType * asScalarType() const
Definition glsltype_p.h:39
virtual const IndexType * asIndexType() const
Definition glsltype_p.h:40
virtual const DoubleType * asDoubleType() const
Definition glsltype_p.h:38
virtual const VectorType * asVectorType() const
Definition glsltype_p.h:41
virtual const IntType * asIntType() const
Definition glsltype_p.h:35
virtual const Struct * asStructType() const
Definition glsltype_p.h:47
virtual const ArrayType * asArrayType() const
Definition glsltype_p.h:43
virtual const MatrixType * asMatrixType() const
Definition glsltype_p.h:42
virtual const UIntType * asUIntType() const
Definition glsltype_p.h:36
virtual const OverloadSet * asOverloadSetType() const
Definition glsltype_p.h:45
virtual const BoolType * asBoolType() const
Definition glsltype_p.h:34
virtual bool isLessThan(const Type *other) const =0
virtual const VoidType * asVoidType() const
Definition glsltype_p.h:33
virtual const SamplerType * asSamplerType() const
Definition glsltype_p.h:44
virtual bool isEqualTo(const Type *other) const =0
virtual const FloatType * asFloatType() const
Definition glsltype_p.h:37
virtual const Function * asFunctionType() const
Definition glsltype_p.h:48
virtual QString toString() const =0
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Definition glsl_p.h:22
Combined button and popup list for selecting options.
QSharedPointer< T > other(t)
[5]