Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
GLSL::MatrixType Class Reference

#include <glsltypes_p.h>

+ Inheritance diagram for GLSL::MatrixType:
+ Collaboration diagram for GLSL::MatrixType:

Public Member Functions

 MatrixType (const Type *elementType, int columns, int rows, const Type *columnType)
 
const TypeelementType () const
 
const TypecolumnType () const
 
int columns () const
 
int rows () const
 
QString toString () const override
 
const MatrixTypeasMatrixType () const override
 
bool isEqualTo (const Type *other) const override
 
bool isLessThan (const Type *other) const override
 
- Public Member Functions inherited from GLSL::IndexType
 IndexType (const Type *indexElementType)
 
const TypeindexElementType () const
 
const IndexTypeasIndexType () const override
 
- Public Member Functions inherited from GLSL::Type
virtual ~Type ()
 
virtual QString toString () const =0
 
virtual const UndefinedTypeasUndefinedType () const
 
virtual const VoidTypeasVoidType () const
 
virtual const BoolTypeasBoolType () const
 
virtual const IntTypeasIntType () const
 
virtual const UIntTypeasUIntType () const
 
virtual const FloatTypeasFloatType () const
 
virtual const DoubleTypeasDoubleType () const
 
virtual const ScalarTypeasScalarType () const
 
virtual const IndexTypeasIndexType () const
 
virtual const VectorTypeasVectorType () const
 
virtual const MatrixTypeasMatrixType () const
 
virtual const ArrayTypeasArrayType () const
 
virtual const SamplerTypeasSamplerType () const
 
virtual const OverloadSetasOverloadSetType () const
 
virtual const StructasStructType () const
 
virtual const FunctionasFunctionType () const
 
virtual bool isEqualTo (const Type *other) const =0
 
virtual bool isLessThan (const Type *other) const =0
 

Detailed Description

Definition at line 142 of file glsltypes_p.h.

Constructor & Destructor Documentation

◆ MatrixType()

GLSL::MatrixType::MatrixType ( const Type elementType,
int  columns,
int  rows,
const Type columnType 
)
inline

Definition at line 145 of file glsltypes_p.h.

Member Function Documentation

◆ asMatrixType()

const MatrixType * GLSL::MatrixType::asMatrixType ( ) const
inlineoverridevirtual

Reimplemented from GLSL::Type.

Definition at line 154 of file glsltypes_p.h.

Referenced by GLSL::Semantic::implicitCast().

+ Here is the caller graph for this function:

◆ columns()

int GLSL::MatrixType::columns ( ) const
inline

Definition at line 150 of file glsltypes_p.h.

Referenced by isLessThan().

+ Here is the caller graph for this function:

◆ columnType()

const Type * GLSL::MatrixType::columnType ( ) const
inline

Definition at line 149 of file glsltypes_p.h.

◆ elementType()

const Type * GLSL::MatrixType::elementType ( ) const
inline

Definition at line 148 of file glsltypes_p.h.

Referenced by isLessThan(), and toString().

+ Here is the caller graph for this function:

◆ isEqualTo()

bool MatrixType::isEqualTo ( const Type other) const
overridevirtual

Implements GLSL::Type.

Definition at line 256 of file glsltypes.cpp.

References other().

+ Here is the call graph for this function:

◆ isLessThan()

bool MatrixType::isLessThan ( const Type other) const
overridevirtual

Implements GLSL::Type.

Definition at line 272 of file glsltypes.cpp.

References columns(), elementType(), other(), Q_ASSERT, and rows().

+ Here is the call graph for this function:

◆ rows()

int GLSL::MatrixType::rows ( ) const
inline

Definition at line 151 of file glsltypes_p.h.

Referenced by isLessThan().

+ Here is the caller graph for this function:

◆ toString()

QString MatrixType::toString ( ) const
overridevirtual

Implements GLSL::Type.

Definition at line 242 of file glsltypes.cpp.

References QString::arg(), GLSL::Type::asBoolType(), GLSL::Type::asDoubleType(), GLSL::Type::asIntType(), GLSL::Type::asUIntType(), elementType(), and QString::fromLatin1().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: