Add GLSL sampler types to semantic analysis phase

This commit is contained in:
Rhys Weatherley
2010-11-26 13:51:45 +10:00
parent 04608e7011
commit c2eaf37f01
7 changed files with 86 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ public:
const UIntType *uintType();
const FloatType *floatType();
const DoubleType *doubleType();
const SamplerType *samplerType(int kind);
const VectorType *vectorType(const Type *elementType, int dimension);
const MatrixType *matrixType(const Type *elementType, int columns, int rows);
@@ -126,6 +127,7 @@ private:
QSet<QString> _identifiers;
TypeTable<VectorType> _vectorTypes;
TypeTable<MatrixType> _matrixTypes;
TypeTable<SamplerType> _samplerTypes;
MemoryPool _pool;
QList<DiagnosticMessage> _diagnosticMessages;
QList<Symbol *> _symbols;