Lines Matching refs:HlslParseContext
55 HlslParseContext::HlslParseContext(TSymbolTable& symbolTable, TIntermediate& interm, bool parsingBuiltins,
102 HlslParseContext::~HlslParseContext()
106 void HlslParseContext::initializeExtensionBehavior()
114 void HlslParseContext::setLimits(const TBuiltInResource& r)
125 bool HlslParseContext::parseShaderStrings(TPpContext& ppContext, TInputScanner& input, bool versionWillBeError)
151 bool HlslParseContext::shouldConvertLValue(const TIntermNode* node) const
169 void HlslParseContext::growGlobalUniformBlock(const TSourceLoc& loc, TType& memberType, const TString& memberName,
185 TLayoutFormat HlslParseContext::getLayoutFromTxType(const TSourceLoc& loc, const TType& txType)
220 bool HlslParseContext::lValueErrorCheck(const TSourceLoc& loc, const char* op, TIntermTyped* node)
253 TIntermTyped* HlslParseContext::handleLvalue(const TSourceLoc& loc, const char* op, TIntermTyped*& node)
522 void HlslParseContext::handlePragma(const TSourceLoc& loc, const TVector<TString>& tokens)
569 bool HlslParseContext::parseMatrixSwizzleSelector(const TSourceLoc& loc, const TString& fields, int cols, int rows,
623 int HlslParseContext::getMatrixComponentsColumn(int rows, const TSwizzleSelectors<TMatrixSelector>& selector)
647 TIntermTyped* HlslParseContext::handleVariable(const TSourceLoc& loc, const TString* string)
722 TIntermTyped* HlslParseContext::handleBracketOperator(const TSourceLoc& loc, TIntermTyped* base, TIntermTyped* index)
779 TIntermTyped* HlslParseContext::makeIntegerIndex(TIntermTyped* index)
796 TIntermTyped* HlslParseContext::handleBracketDereference(const TSourceLoc& loc, TIntermTyped* base, TIntermTyped* index)
874 TIntermTyped* HlslParseContext::handleBinaryMath(const TSourceLoc& loc, const char* str, TOperator op,
885 TIntermTyped* HlslParseContext::handleUnaryMath(const TSourceLoc& loc, const char* str, TOperator op,
900 bool HlslParseContext::isStructBufferMethod(const TString& name) const
931 TIntermTyped* HlslParseContext::handleDotDereference(const TSourceLoc& loc, TIntermTyped* base, const TString& field)
1069 bool HlslParseContext::isBuiltInMethod(const TSourceLoc&, TIntermTyped* base, const TString& field)
1092 void HlslParseContext::splitBuiltIn(const TString& baseName, const TType& memberType, const TArraySizes* arraySizes,
1128 void HlslParseContext::split(const TVariable& variable)
1138 const TType& HlslParseContext::split(const TType& type, const TString& name, const TQualifier& outerQualifier)
1161 bool HlslParseContext::shouldFlatten(const TType& type, TStorageQualifier qualifier, bool topLevel) const
1176 void HlslParseContext::flatten(const TVariable& variable, bool linkage)
1219 int HlslParseContext::flatten(const TVariable& variable, const TType& type,
1238 int HlslParseContext::addFlattenedMember(const TVariable& variable, const TType& type, TFlattenData& flattenData,
1280 int HlslParseContext::flattenStruct(const TVariable& variable, const TType& type,
1316 int HlslParseContext::flattenArray(const TVariable& variable, const TType& type,
1347 bool HlslParseContext::wasFlattened(const TIntermTyped* node) const
1354 bool HlslParseContext::wasSplit(const TIntermTyped* node) const
1363 TIntermTyped* HlslParseContext::flattenAccess(TIntermTyped* base, int member)
1372 TIntermTyped* HlslParseContext::flattenAccess(int uniqueId, int member, TStorageQualifier outerStorage,
1406 int HlslParseContext::findSubtreeOffset(const TIntermNode& node) const
1431 int HlslParseContext::findSubtreeOffset(const TType& type, int subset, const TVector<int>& offsets) const
1440 TVariable* HlslParseContext::getSplitNonIoVar(int id) const
1450 void HlslParseContext::trackLinkage(TSymbol& symbol)
1462 bool HlslParseContext::isClipOrCullDistance(TBuiltInVariable builtIn)
1472 void HlslParseContext::fixBuiltInIoType(TType& type)
1537 void HlslParseContext::assignToInterface(TVariable& variable)
1582 void HlslParseContext::handleFunctionDeclarator(const TSourceLoc& loc, TFunction& function, bool prototype)
1615 void HlslParseContext::addStructBufferHiddenCounterParam(const TSourceLoc& loc, TParameter& param,
1641 TIntermAggregate* HlslParseContext::handleFunctionDefinition(const TSourceLoc& loc, TFunction& function,
1739 void HlslParseContext::handleEntryPointAttributes(const TSourceLoc& loc, const TAttributes& attributes)
1888 void HlslParseContext::transferTypeAttributes(const TSourceLoc& loc, const TAttributes& attributes, TType& type,
1985 TIntermNode* HlslParseContext::transformEntryPoint(const TSourceLoc& loc, TFunction& userFunction,
2171 void HlslParseContext::handleFunctionBody(const TSourceLoc& loc, TFunction& function, TIntermNode* functionBody,
2189 void HlslParseContext::remapEntryPointIO(TFunction& function, TVariable*& returnValue,
2314 void HlslParseContext::remapNonEntryPointIO(TFunction& function)
2329 TIntermNode* HlslParseContext::handleReturnValue(const TSourceLoc& loc, TIntermTyped* value)
2349 void HlslParseContext::handleFunctionArgument(TFunction* function,
2365 TIntermTyped* HlslParseContext::assignPosition(const TSourceLoc& loc, TOperator op,
2426 TIntermAggregate* HlslParseContext::assignClipCullDistance(const TSourceLoc& loc, TOperator op, int semanticId,
2660 TIntermTyped* HlslParseContext::handleAssign(const TSourceLoc& loc, TOperator op, TIntermTyped* left,
2791 auto splitPair = splitBuiltIns.find(HlslParseContext::tInterstageIoData(
3009 TIntermTyped* HlslParseContext::handleAssignToMatrixSwizzle(const TSourceLoc& loc, TOperator op, TIntermTyped* left,
3071 TOperator HlslParseContext::mapAtomicOp(const TSourceLoc& loc, TOperator op, bool isImage)
3092 TIntermAggregate* HlslParseContext::handleSamplerTextureCombine(const TSourceLoc& loc, TIntermTyped* argTex,
3170 bool HlslParseContext::hasStructBuffCounter(const TType& type) const
3181 void HlslParseContext::counterBufferType(const TSourceLoc& loc, TType& type)
3199 void HlslParseContext::declareStructBufferCounter(const TSourceLoc& loc, const TType& bufferType, const TString& name)
3221 TIntermTyped* HlslParseContext::getStructBufferCounter(const TSourceLoc& loc, TIntermTyped* buffer)
3243 void HlslParseContext::decomposeStructBufferMethods(const TSourceLoc& loc, TIntermTyped*& node, TIntermNode* arguments)
3578 TIntermConstantUnion* HlslParseContext::getSamplePosArray(int count)
3645 void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermTyped*& node, TIntermNode* arguments)
4518 void HlslParseContext::decomposeGeometryMethods(const TSourceLoc& loc, TIntermTyped*& node, TIntermNode* arguments)
4580 void HlslParseContext::decomposeIntrinsic(const TSourceLoc& loc, TIntermTyped*& node, TIntermNode* arguments)
5249 TIntermTyped* HlslParseContext::handleFunctionCall(const TSourceLoc& loc, TFunction* function, TIntermTyped* arguments)
5436 void HlslParseContext::pushFrontArguments(TIntermTyped* front, TIntermTyped*& arguments)
5451 void HlslParseContext::addGenMulArgumentConversion(const TSourceLoc& loc, TFunction& call, TIntermTyped*& args)
5526 void HlslParseContext::addInputArgumentConversions(const TFunction& function, TIntermTyped*& arguments)
5599 void HlslParseContext::expandArguments(const TSourceLoc& loc, const TFunction& function, TIntermTyped*& arguments)
5672 TIntermTyped* HlslParseContext::addOutputArgumentConversions(const TFunction& function, TIntermOperator& intermNode)
5763 void HlslParseContext::addStructBuffArguments(const TSourceLoc& loc, TIntermAggregate*& aggregate)
5812 void HlslParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCandidate, TIntermOperator& callNode)
5963 TFunction* HlslParseContext::makeConstructorCall(const TSourceLoc& loc, const TType& type)
5981 void HlslParseContext::handleSemantic(TSourceLoc loc, TQualifier& qualifier, TBuiltInVariable builtIn,
6045 void HlslParseContext::handlePackOffset(const TSourceLoc& loc, TQualifier& qualifier, const glslang::TString& location,
6085 void HlslParseContext::handleRegister(const TSourceLoc& loc, TQualifier& qualifier, const glslang::TString* profile,
6173 TIntermTyped* HlslParseContext::convertConditionalExpression(const TSourceLoc& loc, TIntermTyped* condition,
6188 void HlslParseContext::assignError(const TSourceLoc& loc, const char* op, TString left, TString right)
6197 void HlslParseContext::unaryOpError(const TSourceLoc& loc, const char* op, TString operand)
6207 void HlslParseContext::binaryOpError(const TSourceLoc& loc, const char* op, TString left, TString right)
6220 void HlslParseContext::variableCheck(TIntermTyped*& nodePtr)
6244 void HlslParseContext::constantValueCheck(TIntermTyped* node, const char* token)
6254 void HlslParseContext::integerCheck(const TIntermTyped* node, const char* token)
6266 void HlslParseContext::globalCheck(const TSourceLoc& loc, const char* token)
6272 bool HlslParseContext::builtInName(const TString& /*identifier*/)
6284 bool HlslParseContext::constructorError(const TSourceLoc& loc, TIntermNode* node, TFunction& function,
6471 bool HlslParseContext::isScalarConstructor(const TIntermNode* node)
6489 bool HlslParseContext::voidErrorCheck(const TSourceLoc& loc, const TString& identifier, const TBasicType basicType)
6502 void HlslParseContext::globalQualifierFix(const TSourceLoc&, TQualifier& qualifier)
6526 void HlslParseContext::mergeQualifiers(TQualifier& dst, const TQualifier& src)
6563 int HlslParseContext::computeSamplerTypeIndex(TSampler& sampler)
6576 void HlslParseContext::arraySizeCheck(const TSourceLoc& loc, TIntermTyped* expr, TArraySize& sizePair)
6612 void HlslParseContext::arraySizeRequiredCheck(const TSourceLoc& loc, const TArraySizes& arraySizes)
6618 void HlslParseContext::structArrayCheck(const TSourceLoc& /*loc*/, const TType& type)
6632 void HlslParseContext::declareArray(const TSourceLoc& loc, const TString& identifier, const TType& type,
6686 void HlslParseContext::fixConstInit(const TSourceLoc& loc, const TString& identifier, TType& type,
6711 TSymbol* HlslParseContext::redeclareBuiltinVariable(const TSourceLoc& /*loc*/, const TString& identifier,
6724 TIntermTyped* HlslParseContext::indexStructBufferContent(const TSourceLoc& loc, TIntermTyped* buffer) const
6744 TType* HlslParseContext::getStructBufferContentType(const TType& type) const
6760 void HlslParseContext::shareStructBufferType(TType& type)
6810 void HlslParseContext::paramFix(TType& type)
6839 void HlslParseContext::specializationCheck(const TSourceLoc& loc, const TType& type, const char* op)
6851 void HlslParseContext::setLayoutQualifier(const TSourceLoc& loc, TQualifier& qualifier, TString& id)
7007 void HlslParseContext::setLayoutQualifier(const TSourceLoc& loc, TQualifier& qualifier, TString& id,
7197 void HlslParseContext::setSpecConstantId(const TSourceLoc& loc, TQualifier& qualifier, int value)
7225 void HlslParseContext::mergeObjectLayoutQualifiers(TQualifier& dst, const TQualifier& src, bool inheritOnly)
7284 const TFunction* HlslParseContext::findFunction(const TSourceLoc& loc, TFunction& call, bool& builtIn, int& thisDepth,
7570 void HlslParseContext::declareTypedef(const TSourceLoc& loc, const TString& identifier, const TType& parseType)
7580 void HlslParseContext::declareStruct(const TSourceLoc& loc, TString& structName, TType& type)
7685 TSymbol* HlslParseContext::lookupUserType(const TString& typeName, TType& type)
7706 TIntermNode* HlslParseContext::declareVariable(const TSourceLoc& loc, const TString& identifier, TType& type,
7788 void HlslParseContext::inheritGlobalDefaults(TQualifier& dst) const
7804 TVariable* HlslParseContext::makeInternalVariable(const char* name, const TType& type) const
7814 TIntermSymbol* HlslParseContext::makeInternalVariableNode(const TSourceLoc& loc, const char* name,
7829 TVariable* HlslParseContext::declareNonArray(const TSourceLoc& loc, const TString& identifier, const TType& type,
7854 TIntermNode* HlslParseContext::executeInitializer(const TSourceLoc& loc, TIntermTyped* initializer, TVariable* variable)
7956 TIntermTyped* HlslParseContext::convertInitializerList(const TSourceLoc& loc, const TType& type,
8102 void HlslParseContext::lengthenList(const TSourceLoc& loc, TIntermSequence& list, int size, TIntermTyped* scalarInit)
8118 TIntermTyped* HlslParseContext::handleConstructor(const TSourceLoc& loc, TIntermTyped* node, const TType& type)
8156 TIntermTyped* HlslParseContext::addConstructor(const TSourceLoc& loc, TIntermTyped* node, const TType& type)
8254 TIntermTyped* HlslParseContext::constructBuiltIn(const TType& type, TOperator op, TIntermTyped* node,
8400 TIntermTyped* HlslParseContext::convertArray(TIntermTyped* node, const TType& type)
8473 TIntermTyped* HlslParseContext::constructAggregate(TIntermNode* node, const TType& type, int paramCount,
8491 void HlslParseContext::declareBlock(const TSourceLoc& loc, TType& type, const TString* instanceName)
8650 void HlslParseContext::fixBlockLocations(const TSourceLoc& loc, TQualifier& qualifier, TTypeList& typeList, bool memberWithLocation, bool memberWithoutLocation)
8687 void HlslParseContext::fixXfbOffsets(TQualifier& qualifier, TTypeList& typeList)
8724 void HlslParseContext::fixBlockUniformOffsets(const TQualifier& qualifier, TTypeList& typeList)
8775 void HlslParseContext::addQualifierToExisting(const TSourceLoc& loc, TQualifier qualifier, const TString& identifier)
8818 void HlslParseContext::addQualifierToExisting(const TSourceLoc& loc, TQualifier qualifier, TIdentifierList& identifiers)
8827 bool HlslParseContext::handleInputGeometry(const TSourceLoc& loc, const TLayoutGeometry& geometry)
8852 bool HlslParseContext::handleOutputGeometry(const TSourceLoc& loc, const TLayoutGeometry& geometry)
8879 void HlslParseContext::handleSelectionAttributes(const TSourceLoc& loc, TIntermSelection* selection,
8903 void HlslParseContext::handleSwitchAttributes(const TSourceLoc& loc, TIntermSwitch* selection,
8927 void HlslParseContext::handleLoopAttributes(const TSourceLoc& loc, TIntermLoop* loop,
8952 void HlslParseContext::updateStandaloneQualifierDefaults(const TSourceLoc& loc, const TPublicType& publicType)
9055 void HlslParseContext::wrapupSwitchSubsequence(TIntermAggregate* statements, TIntermNode* branchNode)
9089 TIntermNode* HlslParseContext::addSwitch(const TSourceLoc& loc, TIntermTyped* expression,
9125 void HlslParseContext::pushThisScope(const TType& thisStruct, const TVector<TFunctionDeclarator>& functionDeclarators)
9151 void HlslParseContext::pushNamespace(const TString& typeName)
9163 void HlslParseContext::popNamespace()
9170 void HlslParseContext::getFullNamespaceName(TString*& name) const
9181 void HlslParseContext::addScopeMangler(TString& name)
9187 bool HlslParseContext::hasUniform(const TQualifier& qualifier) const
9196 void HlslParseContext::clearUniform(TQualifier& qualifier)
9203 bool HlslParseContext::isInputBuiltIn(const TQualifier& qualifier) const
9251 bool HlslParseContext::hasInput(const TQualifier& qualifier) const
9269 bool HlslParseContext::isOutputBuiltIn(const TQualifier& qualifier) const
9297 bool HlslParseContext::hasOutput(const TQualifier& qualifier) const
9318 void HlslParseContext::correctInput(TQualifier& qualifier)
9338 void HlslParseContext::correctOutput(TQualifier& qualifier)
9374 void HlslParseContext::correctUniform(TQualifier& qualifier)
9385 void HlslParseContext::clearUniformInputOutput(TQualifier& qualifier)
9393 bool HlslParseContext::setTextureReturnType(TSampler& sampler, const TType& retType, const TSourceLoc& loc)
9480 void HlslParseContext::getTextureReturnType(const TSampler& sampler, TType& retType) const
9499 TIntermSymbol* HlslParseContext::findTessLinkageSymbol(TBuiltInVariable biType) const
9509 const TFunction* HlslParseContext::findPatchConstantFunction(const TSourceLoc& loc)
9542 void HlslParseContext::addPatchConstantInvocation()
9560 builtIns.insert(HlslParseContext::tInterstageIoData(function[p].getDeclaredBuiltIn(), storage));
9562 builtIns.insert(HlslParseContext::tInterstageIoData(function[p].type->getQualifier().builtIn, storage));
9896 void HlslParseContext::removeUnusedStructBufferCounters()
9908 void HlslParseContext::fixTextureShadowModes()
9929 void HlslParseContext::finalizeAppendMethods()
9953 void HlslParseContext::finish()