Lines Matching refs:qualifier

33 	bool IsVaryingOut(TQualifier qualifier)  in IsVaryingOut()  argument
35 switch(qualifier) in IsVaryingOut()
50 bool IsVaryingIn(TQualifier qualifier) in IsVaryingIn() argument
52 switch(qualifier) in IsVaryingIn()
67 bool IsVarying(TQualifier qualifier) in IsVarying() argument
69 return IsVaryingIn(qualifier) || IsVaryingOut(qualifier); in IsVarying()
662 switch(pType.qualifier) in structQualifierErrorCheck()
677 error(line, "cannot be used with a structure", getQualifierString(pType.qualifier)); in structQualifierErrorCheck()
686 if (pType.qualifier != EvqUniform && samplerErrorCheck(line, pType, "samplers must be uniform")) in structQualifierErrorCheck()
690 if (pType.qualifier != EvqVertexIn && pType.qualifier != EvqFragmentOut && in structQualifierErrorCheck()
704 switch(publicType.qualifier) in singleDeclarationErrorCheck()
714 getQualifierString(publicType.qualifier)); in singleDeclarationErrorCheck()
721 if(publicType.qualifier != EvqUniform && samplerErrorCheck(identifierLocation, publicType, in singleDeclarationErrorCheck()
744 if(publicType.qualifier != EvqVertexIn && publicType.qualifier != EvqFragmentOut && in singleDeclarationErrorCheck()
775 bool TParseContext::parameterSamplerErrorCheck(const TSourceLoc &line, TQualifier qualifier, const … in parameterSamplerErrorCheck() argument
777 if ((qualifier == EvqOut || qualifier == EvqInOut) && in parameterSamplerErrorCheck()
857 …if ((type.qualifier == EvqAttribute) || (type.qualifier == EvqVertexIn) || (type.qualifier == EvqC… in arrayQualifierErrorCheck()
882 if(mShaderVersion >= 300 && type.type == EbtStruct && IsVarying(type.qualifier)) in arrayTypeErrorCheck()
943 if (type.qualifier == EvqConstExpr) in nonInitConstErrorCheck()
946 type.qualifier = EvqTemporary; in nonInitConstErrorCheck()
975 if(type.qualifier == EvqConstExpr) in nonInitErrorCheck()
978 type.qualifier = EvqTemporary; in nonInitErrorCheck()
1043 bool TParseContext::paramErrorCheck(const TSourceLoc &line, TQualifier qualifier, TQualifier paramQ… in paramErrorCheck() argument
1045 if (qualifier != EvqConstReadOnly && qualifier != EvqTemporary) { in paramErrorCheck()
1046 error(line, "qualifier not allowed on function parameter", getQualifierString(qualifier)); in paramErrorCheck()
1049 if (qualifier == EvqConstReadOnly && paramQualifier != EvqIn) { in paramErrorCheck()
1050 …error(line, "qualifier not allowed with ", getQualifierString(qualifier), getQualifierString(param… in paramErrorCheck()
1054 if (qualifier == EvqConstReadOnly) in paramErrorCheck()
1103 void TParseContext::es3InvariantErrorCheck(const TQualifier qualifier, const TSourceLoc &invariantL… in es3InvariantErrorCheck() argument
1105 switch(qualifier) in es3InvariantErrorCheck()
1172 TQualifier qualifier = variable->getType().getQualifier(); in getNamedVariable() local
1173 if(qualifier == EvqFragData) in getNamedVariable()
1177 else if(qualifier == EvqFragColor) in getNamedVariable()
1271 TQualifier qualifier = type.getQualifier(); in executeInitializer() local
1272 if ((qualifier != EvqTemporary) && (qualifier != EvqGlobal) && (qualifier != EvqConstExpr)) { in executeInitializer()
1280 if (qualifier == EvqConstExpr) { in executeInitializer()
1281 if (qualifier != initializer->getQualifier()) { in executeInitializer()
1327 TPublicType TParseContext::addFullySpecifiedType(TQualifier qualifier, bool invariant, TLayoutQuali… in addFullySpecifiedType() argument
1330 returnType.qualifier = qualifier; in addFullySpecifiedType()
1342 if(qualifier == EvqAttribute && (typeSpecifier.type == EbtBool || typeSpecifier.type == EbtInt)) in addFullySpecifiedType()
1344 error(typeSpecifier.line, "cannot be bool or int", getQualifierString(qualifier)); in addFullySpecifiedType()
1348 if((qualifier == EvqVaryingIn || qualifier == EvqVaryingOut) && in addFullySpecifiedType()
1351 error(typeSpecifier.line, "cannot be bool or int", getQualifierString(qualifier)); in addFullySpecifiedType()
1362 …if(IsVarying(returnType.qualifier) || returnType.qualifier == EvqVertexIn || returnType.qualifier in addFullySpecifiedType()
1364 checkInputOutputTypeIsValidES3(returnType.qualifier, typeSpecifier, typeSpecifier.line); in addFullySpecifiedType()
1371 void TParseContext::checkInputOutputTypeIsValidES3(const TQualifier qualifier, in checkInputOutputTypeIsValidES3() argument
1378 error(qualifierLocation, "cannot be bool", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1382 switch(qualifier) in checkInputOutputTypeIsValidES3()
1388 error(qualifierLocation, "cannot be array", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1396 error(qualifierLocation, "cannot be matrix", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1409 if(typeContainsIntegers && qualifier != EvqFlatIn && qualifier != EvqFlatOut) in checkInputOutputTypeIsValidES3()
1411 error(qualifierLocation, "must use 'flat' interpolation here", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1421 error(qualifierLocation, "cannot be an array of structures", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1425 …ror(qualifierLocation, "cannot be a structure containing an array", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1429 …(qualifierLocation, "cannot be a structure containing a structure", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1433 …error(qualifierLocation, "cannot be a structure containing a bool", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1801 if(typeQualifier.qualifier != EvqUniform) in parseGlobalLayoutQualifier()
1803 …error(typeQualifier.line, "invalid qualifier:", getQualifierString(typeQualifier.qualifier), "glob… in parseGlobalLayoutQualifier()
2340 if(typeQualifier.qualifier != EvqUniform) in addInterfaceBlock()
2342 …error(typeQualifier.line, "invalid qualifier:", getQualifierString(typeQualifier.qualifier), "inte… in addInterfaceBlock()
2376 const TQualifier qualifier = fieldType->getQualifier(); in addInterfaceBlock() local
2377 switch(qualifier) in addInterfaceBlock()
2383 …error(field->line(), "invalid qualifier on interface block member", getQualifierString(qualifier)); in addInterfaceBlock()
2425 TType interfaceBlockType(interfaceBlock, typeQualifier.qualifier, blockLayoutQualifier, arraySize); in addInterfaceBlock()
2441 fieldVariable->setQualifier(typeQualifier.qualifier); in addInterfaceBlock()
2456 instanceTypeDef->setQualifier(typeQualifier.qualifier); in addInterfaceBlock()
2619 …TQualifier qualifier = baseExpression->getType().getQualifier() == EvqConstExpr ? EvqConstExpr : E… in addIndexExpression() local
2621 qualifier, static_cast<unsigned char>(baseExpression->getSecondarySize()))); in addIndexExpression()
2625 …TQualifier qualifier = baseExpression->getType().getQualifier() == EvqConstExpr ? EvqConstExpr : E… in addIndexExpression() local
2626 …ression->setType(TType(baseExpression->getBasicType(), baseExpression->getPrecision(), qualifier)); in addIndexExpression()
2791 TLayoutQualifier qualifier; in parseLayoutQualifier() local
2793 qualifier.location = -1; in parseLayoutQualifier()
2794 qualifier.matrixPacking = EmpUnspecified; in parseLayoutQualifier()
2795 qualifier.blockStorage = EbsUnspecified; in parseLayoutQualifier()
2799 qualifier.blockStorage = EbsShared; in parseLayoutQualifier()
2803 qualifier.blockStorage = EbsPacked; in parseLayoutQualifier()
2807 qualifier.blockStorage = EbsStd140; in parseLayoutQualifier()
2811 qualifier.matrixPacking = EmpRowMajor; in parseLayoutQualifier()
2815 qualifier.matrixPacking = EmpColumnMajor; in parseLayoutQualifier()
2828 return qualifier; in parseLayoutQualifier()
2833 TLayoutQualifier qualifier; in parseLayoutQualifier() local
2835qualifier.location = -1; // -1 isn't a valid location, it means the value isn't set. Negative val… in parseLayoutQualifier()
2836 qualifier.matrixPacking = EmpUnspecified; in parseLayoutQualifier()
2837 qualifier.blockStorage = EbsUnspecified; in parseLayoutQualifier()
2854 qualifier.location = intValue; in parseLayoutQualifier()
2858 return qualifier; in parseLayoutQualifier()
2944 type->setQualifier(typeSpecifier.qualifier); in addStructDeclaratorList()
2997 const TQualifier qualifier = field->type()->getQualifier(); in addStructure() local
2998 switch(qualifier) in addStructure()
3004 error(field->line(), "invalid qualifier on struct member", getQualifierString(qualifier)); in addStructure()