mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-27 13:10:37 +00:00
Fix an issue of interpolateAtVertexAMD().
An error message should be reported if the interpolant is not an input.
This commit is contained in:
parent
23ea3db3e5
commit
35a3de748a
@ -1585,6 +1585,9 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
|
||||
case EOpInterpolateAtCentroid:
|
||||
case EOpInterpolateAtSample:
|
||||
case EOpInterpolateAtOffset:
|
||||
#ifdef AMD_EXTENSIONS
|
||||
case EOpInterpolateAtVertex:
|
||||
#endif
|
||||
// Make sure the first argument is an interpolant, or an array element of an interpolant
|
||||
if (arg0->getType().getQualifier().storage != EvqVaryingIn) {
|
||||
// It might still be an array element.
|
||||
|
Loading…
Reference in New Issue
Block a user