• Home
  • Raw
  • Download

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()
654 switch(pType.qualifier) in structQualifierErrorCheck()
669 error(line, "cannot be used with a structure", getQualifierString(pType.qualifier)); in structQualifierErrorCheck()
678 if (pType.qualifier != EvqUniform && samplerErrorCheck(line, pType, "samplers must be uniform")) in structQualifierErrorCheck()
682 if (pType.qualifier != EvqVertexIn && pType.qualifier != EvqFragmentOut && in structQualifierErrorCheck()
696 switch(publicType.qualifier) in singleDeclarationErrorCheck()
706 getQualifierString(publicType.qualifier)); in singleDeclarationErrorCheck()
713 if(publicType.qualifier != EvqUniform && samplerErrorCheck(identifierLocation, publicType, in singleDeclarationErrorCheck()
736 if(publicType.qualifier != EvqVertexIn && publicType.qualifier != EvqFragmentOut && in singleDeclarationErrorCheck()
767 bool TParseContext::parameterSamplerErrorCheck(const TSourceLoc &line, TQualifier qualifier, const … in parameterSamplerErrorCheck() argument
769 if ((qualifier == EvqOut || qualifier == EvqInOut) && in parameterSamplerErrorCheck()
849 …if ((type.qualifier == EvqAttribute) || (type.qualifier == EvqVertexIn) || (type.qualifier == EvqC… in arrayQualifierErrorCheck()
874 if(mShaderVersion >= 300 && type.type == EbtStruct && IsVarying(type.qualifier)) in arrayTypeErrorCheck()
935 if (type.qualifier == EvqConstExpr) in nonInitConstErrorCheck()
938 type.qualifier = EvqTemporary; in nonInitConstErrorCheck()
967 if(type.qualifier == EvqConstExpr) in nonInitErrorCheck()
970 type.qualifier = EvqTemporary; in nonInitErrorCheck()
1035 bool TParseContext::paramErrorCheck(const TSourceLoc &line, TQualifier qualifier, TQualifier paramQ… in paramErrorCheck() argument
1037 if (qualifier != EvqConstReadOnly && qualifier != EvqTemporary) { in paramErrorCheck()
1038 error(line, "qualifier not allowed on function parameter", getQualifierString(qualifier)); in paramErrorCheck()
1041 if (qualifier == EvqConstReadOnly && paramQualifier != EvqIn) { in paramErrorCheck()
1042 …error(line, "qualifier not allowed with ", getQualifierString(qualifier), getQualifierString(param… in paramErrorCheck()
1046 if (qualifier == EvqConstReadOnly) in paramErrorCheck()
1095 void TParseContext::es3InvariantErrorCheck(const TQualifier qualifier, const TSourceLoc &invariantL… in es3InvariantErrorCheck() argument
1097 switch(qualifier) in es3InvariantErrorCheck()
1164 TQualifier qualifier = variable->getType().getQualifier(); in getNamedVariable() local
1165 if(qualifier == EvqFragData) in getNamedVariable()
1169 else if(qualifier == EvqFragColor) in getNamedVariable()
1263 TQualifier qualifier = type.getQualifier(); in executeInitializer() local
1264 if ((qualifier != EvqTemporary) && (qualifier != EvqGlobal) && (qualifier != EvqConstExpr)) { in executeInitializer()
1272 if (qualifier == EvqConstExpr) { in executeInitializer()
1273 if (qualifier != initializer->getQualifier()) { in executeInitializer()
1319 TPublicType TParseContext::addFullySpecifiedType(TQualifier qualifier, bool invariant, TLayoutQuali… in addFullySpecifiedType() argument
1322 returnType.qualifier = qualifier; in addFullySpecifiedType()
1334 if(qualifier == EvqAttribute && (typeSpecifier.type == EbtBool || typeSpecifier.type == EbtInt)) in addFullySpecifiedType()
1336 error(typeSpecifier.line, "cannot be bool or int", getQualifierString(qualifier)); in addFullySpecifiedType()
1340 if((qualifier == EvqVaryingIn || qualifier == EvqVaryingOut) && in addFullySpecifiedType()
1343 error(typeSpecifier.line, "cannot be bool or int", getQualifierString(qualifier)); in addFullySpecifiedType()
1354 …if(IsVarying(returnType.qualifier) || returnType.qualifier == EvqVertexIn || returnType.qualifier in addFullySpecifiedType()
1356 checkInputOutputTypeIsValidES3(returnType.qualifier, typeSpecifier, typeSpecifier.line); in addFullySpecifiedType()
1363 void TParseContext::checkInputOutputTypeIsValidES3(const TQualifier qualifier, in checkInputOutputTypeIsValidES3() argument
1370 error(qualifierLocation, "cannot be bool", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1374 switch(qualifier) in checkInputOutputTypeIsValidES3()
1380 error(qualifierLocation, "cannot be array", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1388 error(qualifierLocation, "cannot be matrix", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1401 if(typeContainsIntegers && qualifier != EvqFlatIn && qualifier != EvqFlatOut) in checkInputOutputTypeIsValidES3()
1403 error(qualifierLocation, "must use 'flat' interpolation here", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1413 error(qualifierLocation, "cannot be an array of structures", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1417 …ror(qualifierLocation, "cannot be a structure containing an array", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1421 …(qualifierLocation, "cannot be a structure containing a structure", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1425 …error(qualifierLocation, "cannot be a structure containing a bool", getQualifierString(qualifier)); in checkInputOutputTypeIsValidES3()
1793 if(typeQualifier.qualifier != EvqUniform) in parseGlobalLayoutQualifier()
1795 …error(typeQualifier.line, "invalid qualifier:", getQualifierString(typeQualifier.qualifier), "glob… in parseGlobalLayoutQualifier()
2332 if(typeQualifier.qualifier != EvqUniform) in addInterfaceBlock()
2334 …error(typeQualifier.line, "invalid qualifier:", getQualifierString(typeQualifier.qualifier), "inte… in addInterfaceBlock()
2368 const TQualifier qualifier = fieldType->getQualifier(); in addInterfaceBlock() local
2369 switch(qualifier) in addInterfaceBlock()
2375 …error(field->line(), "invalid qualifier on interface block member", getQualifierString(qualifier)); in addInterfaceBlock()
2417 TType interfaceBlockType(interfaceBlock, typeQualifier.qualifier, blockLayoutQualifier, arraySize); in addInterfaceBlock()
2433 fieldVariable->setQualifier(typeQualifier.qualifier); in addInterfaceBlock()
2448 instanceTypeDef->setQualifier(typeQualifier.qualifier); in addInterfaceBlock()
2611 …TQualifier qualifier = baseExpression->getType().getQualifier() == EvqConstExpr ? EvqConstExpr : E… in addIndexExpression() local
2613 qualifier, static_cast<unsigned char>(baseExpression->getSecondarySize()))); in addIndexExpression()
2617 …TQualifier qualifier = baseExpression->getType().getQualifier() == EvqConstExpr ? EvqConstExpr : E… in addIndexExpression() local
2618 …ression->setType(TType(baseExpression->getBasicType(), baseExpression->getPrecision(), qualifier)); in addIndexExpression()
2783 TLayoutQualifier qualifier; in parseLayoutQualifier() local
2785 qualifier.location = -1; in parseLayoutQualifier()
2786 qualifier.matrixPacking = EmpUnspecified; in parseLayoutQualifier()
2787 qualifier.blockStorage = EbsUnspecified; in parseLayoutQualifier()
2791 qualifier.blockStorage = EbsShared; in parseLayoutQualifier()
2795 qualifier.blockStorage = EbsPacked; in parseLayoutQualifier()
2799 qualifier.blockStorage = EbsStd140; in parseLayoutQualifier()
2803 qualifier.matrixPacking = EmpRowMajor; in parseLayoutQualifier()
2807 qualifier.matrixPacking = EmpColumnMajor; in parseLayoutQualifier()
2820 return qualifier; in parseLayoutQualifier()
2825 TLayoutQualifier qualifier; in parseLayoutQualifier() local
2827qualifier.location = -1; // -1 isn't a valid location, it means the value isn't set. Negative val… in parseLayoutQualifier()
2828 qualifier.matrixPacking = EmpUnspecified; in parseLayoutQualifier()
2829 qualifier.blockStorage = EbsUnspecified; in parseLayoutQualifier()
2846 qualifier.location = intValue; in parseLayoutQualifier()
2850 return qualifier; in parseLayoutQualifier()
2936 type->setQualifier(typeSpecifier.qualifier); in addStructDeclaratorList()
2989 const TQualifier qualifier = field->type()->getQualifier(); in addStructure() local
2990 switch(qualifier) in addStructure()
2996 error(field->line(), "invalid qualifier on struct member", getQualifierString(qualifier)); in addStructure()