Issue an error if "uniform" or "varying" qualifiers are applied to void types.
Issue #179.
This commit is contained in:
9
type.cpp
9
type.cpp
@@ -382,24 +382,21 @@ AtomicType::GetBaseType() const {
|
||||
|
||||
const AtomicType *
|
||||
AtomicType::GetAsVaryingType() const {
|
||||
if (this == AtomicType::Void)
|
||||
return this;
|
||||
Assert(this != AtomicType::Void);
|
||||
return typeTable[basicType][Varying][isConst ? 1 : 0];
|
||||
}
|
||||
|
||||
|
||||
const AtomicType *
|
||||
AtomicType::GetAsUniformType() const {
|
||||
if (this == AtomicType::Void)
|
||||
return this;
|
||||
Assert(this != AtomicType::Void);
|
||||
return typeTable[basicType][Uniform][isConst ? 1 : 0];
|
||||
}
|
||||
|
||||
|
||||
const AtomicType *
|
||||
AtomicType::GetAsUnboundVariabilityType() const {
|
||||
if (this == AtomicType::Void)
|
||||
return this;
|
||||
Assert(this != AtomicType::Void);
|
||||
return typeTable[basicType][Unbound][isConst ? 1 : 0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user