Reduce dynamic memory allocation in getting unif/varying variants of AtomicTypes

This commit is contained in:
Matt Pharr
2012-05-04 13:42:23 -07:00
parent e1bc010bd1
commit 7db8824da2
2 changed files with 16 additions and 3 deletions

2
type.h
View File

@@ -333,7 +333,7 @@ private:
const bool isConst;
AtomicType(BasicType basicType, Variability v, bool isConst);
mutable const AtomicType *asOtherConstType;
mutable const AtomicType *asOtherConstType, *asUniformType, *asVaryingType;
};