Merge pull request #1305 from amdrexu/bugfix
Add additional error check for fragment shader outputs
This commit is contained in:
commit
1b1ad97d0e
@ -2778,8 +2778,8 @@ void TParseContext::globalQualifierTypeCheck(const TSourceLoc& loc, const TQuali
|
|||||||
error(loc, "can't use auxiliary qualifier on a fragment output", "centroid/sample/patch", "");
|
error(loc, "can't use auxiliary qualifier on a fragment output", "centroid/sample/patch", "");
|
||||||
if (qualifier.isInterpolation())
|
if (qualifier.isInterpolation())
|
||||||
error(loc, "can't use interpolation qualifier on a fragment output", "flat/smooth/noperspective", "");
|
error(loc, "can't use interpolation qualifier on a fragment output", "flat/smooth/noperspective", "");
|
||||||
if (publicType.basicType == EbtDouble)
|
if (publicType.basicType == EbtDouble || publicType.basicType == EbtInt64 || publicType.basicType == EbtUint64)
|
||||||
error(loc, "cannot contain a double", GetStorageQualifierString(qualifier.storage), "");
|
error(loc, "cannot contain a double, int64, or uint64", GetStorageQualifierString(qualifier.storage), "");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EShLangCompute:
|
case EShLangCompute:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user