Commit 9af44368 authored by Rhys Weatherley's avatar Rhys Weatherley
Browse files

GLSL array type toString() implementation

parent 045c7fd5
......@@ -309,6 +309,11 @@ bool MatrixType::isLessThan(const Type *other) const
return false;
QString ArrayType::toString() const
return elementType()->toString() + QLatin1String("[]");
bool ArrayType::isEqualTo(const Type *other) const
if (other) {
......@@ -181,6 +181,7 @@ public:
const Type *elementType() const { return indexElementType(); }
virtual QString toString() const;
virtual const ArrayType *asArrayType() const { return this; }
virtual bool isEqualTo(const Type *other) const;
virtual bool isLessThan(const Type *other) const;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment