Lines Matching refs:profile
103 int version, EProfile profile, EShSource source, in CreateParseContext() argument
113 … return new TParseContext(symbolTable, intermediate, parsingBuiltIns, version, profile, spvVersion, in CreateParseContext()
118 …return new HlslParseContext(symbolTable, intermediate, parsingBuiltIns, version, profile, spvVersi… in CreateParseContext()
180 int MapProfileToIndex(EProfile profile) in MapProfileToIndex() argument
184 switch (profile) { in MapProfileToIndex()
237 bool InitializeSymbolTable(const TString& builtIns, int version, EProfile profile, const SpvVersion… in InitializeSymbolTable() argument
240 TIntermediate intermediate(language, version, profile); in InitializeSymbolTable()
244 …seContextBase> parseContext(CreateParseContext(symbolTable, intermediate, version, profile, source, in InitializeSymbolTable()
282 int CommonIndex(EProfile profile, EShLanguage language) in CommonIndex() argument
284 return (profile == EEsProfile && language == EShLangFragment) ? EPcFragment : EPcGeneral; in CommonIndex()
290 …SymbolTable(TBuiltInParseables& builtInParseables, int version, EProfile profile, const SpvVersion… in InitializeStageSymbolTable() argument
295 profile = EEsProfile; in InitializeStageSymbolTable()
298 profile = ECoreProfile; in InitializeStageSymbolTable()
302 (*symbolTables[language]).adoptLevels(*commonTable[CommonIndex(profile, language)]); in InitializeStageSymbolTable()
303 …InitializeSymbolTable(builtInParseables.getStageString(language), version, profile, spvVersion, la… in InitializeStageSymbolTable()
305 …builtInParseables.identifyBuiltIns(version, profile, spvVersion, language, *symbolTables[language]… in InitializeStageSymbolTable()
306 if (profile == EEsProfile && version >= 300) in InitializeStageSymbolTable()
316 …Table** commonTable, TSymbolTable** symbolTables, int version, EProfile profile, const SpvVersion… in InitializeSymbolTables() argument
319 profile = EEsProfile; in InitializeSymbolTables()
322 profile = ECoreProfile; in InitializeSymbolTables()
331 builtInParseables->initialize(version, profile, spvVersion); in InitializeSymbolTables()
334 …InitializeSymbolTable(builtInParseables->getCommonString(), version, profile, spvVersion, EShLangV… in InitializeSymbolTables()
336 if (profile == EEsProfile) in InitializeSymbolTables()
337 …InitializeSymbolTable(builtInParseables->getCommonString(), version, profile, spvVersion, EShLangF… in InitializeSymbolTables()
343 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangVertex, source, in InitializeSymbolTables()
345 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangFragment, sour… in InitializeSymbolTables()
350 if ((profile != EEsProfile && version >= 150) || in InitializeSymbolTables()
351 (profile == EEsProfile && version >= 310)) { in InitializeSymbolTables()
352 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangTessControl, s… in InitializeSymbolTables()
354 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangTessEvaluation… in InitializeSymbolTables()
359 if ((profile != EEsProfile && version >= 150) || in InitializeSymbolTables()
360 (profile == EEsProfile && version >= 310)) in InitializeSymbolTables()
361 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangGeometry, sour… in InitializeSymbolTables()
365 if ((profile != EEsProfile && version >= 420) || in InitializeSymbolTables()
366 (profile == EEsProfile && version >= 310)) in InitializeSymbolTables()
367 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangCompute, sourc… in InitializeSymbolTables()
372 if (profile != EEsProfile && version >= 450) { in InitializeSymbolTables()
373 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangRayGen, source, in InitializeSymbolTables()
375 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangIntersect, sou… in InitializeSymbolTables()
377 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangAnyHit, source, in InitializeSymbolTables()
379 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangClosestHit, so… in InitializeSymbolTables()
381 … InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangMiss, source, in InitializeSymbolTables()
383 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangCallable, sour… in InitializeSymbolTables()
388 if ((profile != EEsProfile && version >= 450) || in InitializeSymbolTables()
389 (profile == EEsProfile && version >= 320)) in InitializeSymbolTables()
390 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangMeshNV, source, in InitializeSymbolTables()
394 if ((profile != EEsProfile && version >= 450) || in InitializeSymbolTables()
395 (profile == EEsProfile && version >= 320)) in InitializeSymbolTables()
396 …InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangTaskNV, source, in InitializeSymbolTables()
405 … EProfile profile, const SpvVersion& spvVersion, EShLanguage language, EShSource source) in AddContextSpecificSymbols() argument
412 builtInParseables->initialize(*resources, version, profile, spvVersion, language); in AddContextSpecificSymbols()
413 …InitializeSymbolTable(builtInParseables->getCommonString(), version, profile, spvVersion, language… in AddContextSpecificSymbols()
414 …builtInParseables->identifyBuiltIns(version, profile, spvVersion, language, symbolTable, *resource… in AddContextSpecificSymbols()
431 void SetupBuiltinSymbolTable(int version, EProfile profile, const SpvVersion& spvVersion, EShSource… in SetupBuiltinSymbolTable() argument
441 int profileIndex = MapProfileToIndex(profile); in SetupBuiltinSymbolTable()
463 … InitializeSymbolTables(infoSink, commonTable, stageTables, version, profile, spvVersion, source); in SetupBuiltinSymbolTable()
480 …[versionIndex][spvVersionIndex][profileIndex][sourceIndex][CommonIndex(profile, (EShLanguage)stage… in SetupBuiltinSymbolTable()
512 … EShSource source, int& version, EProfile& profile, const SpvVersion& spvVersion) in DeduceVersionProfile() argument
519 profile = ECoreProfile; // allow doubles in prototype parsing in DeduceVersionProfile()
530 if (profile == ENoProfile) { in DeduceVersionProfile()
534 profile = EEsProfile; in DeduceVersionProfile()
536 profile = EEsProfile; in DeduceVersionProfile()
538 profile = ECoreProfile; in DeduceVersionProfile()
540 profile = ENoProfile; in DeduceVersionProfile()
547 profile = EEsProfile; in DeduceVersionProfile()
549 profile = ENoProfile; in DeduceVersionProfile()
551 if (profile != EEsProfile) { in DeduceVersionProfile()
555 profile = EEsProfile; in DeduceVersionProfile()
557 if (profile == EEsProfile) { in DeduceVersionProfile()
561 profile = ECoreProfile; in DeduceVersionProfile()
563 profile = ENoProfile; in DeduceVersionProfile()
596 if (profile == EEsProfile) in DeduceVersionProfile()
600 profile = ECoreProfile; in DeduceVersionProfile()
609 if ((profile == EEsProfile && version < 310) || in DeduceVersionProfile()
610 (profile != EEsProfile && version < 150)) { in DeduceVersionProfile()
613 version = (profile == EEsProfile) ? 310 : 150; in DeduceVersionProfile()
614 if (profile == EEsProfile || profile == ENoProfile) in DeduceVersionProfile()
615 profile = ECoreProfile; in DeduceVersionProfile()
620 if ((profile == EEsProfile && version < 310) || in DeduceVersionProfile()
621 (profile != EEsProfile && version < 150)) { in DeduceVersionProfile()
624 …version = (profile == EEsProfile) ? 310 : 400; // 150 supports the extension, correction is to 400… in DeduceVersionProfile()
625 if (profile == EEsProfile || profile == ENoProfile) in DeduceVersionProfile()
626 profile = ECoreProfile; in DeduceVersionProfile()
630 if ((profile == EEsProfile && version < 310) || in DeduceVersionProfile()
631 (profile != EEsProfile && version < 420)) { in DeduceVersionProfile()
634 version = profile == EEsProfile ? 310 : 420; in DeduceVersionProfile()
643 if (profile == EEsProfile || version < 460) { in DeduceVersionProfile()
651 if ((profile == EEsProfile && version < 320) || in DeduceVersionProfile()
652 (profile != EEsProfile && version < 450)) { in DeduceVersionProfile()
655 version = profile == EEsProfile ? 320 : 450; in DeduceVersionProfile()
661 if (profile == EEsProfile && version >= 300 && versionNotFirst) { in DeduceVersionProfile()
668 switch (profile) { in DeduceVersionProfile()
874 EProfile profile = ENoProfile; in ProcessDeferred() local
878 : userInput.scanVersion(version, profile, versionNotFirstToken); in ProcessDeferred()
883 (version != defaultVersion || profile != defaultProfile)) { in ProcessDeferred()
887 << version << ", " << ProfileName(profile) << ")\n"; in ProcessDeferred()
896 profile = defaultProfile; in ProcessDeferred()
900 … versionNotFirst, defaultVersion, source, version, profile, spvVersion); in ProcessDeferred()
902 profile = EEsProfile; in ProcessDeferred()
905 profile = ECoreProfile; in ProcessDeferred()
909 …bool versionWillBeError = (versionNotFound || (profile == EEsProfile && version >= 300 && versionN… in ProcessDeferred()
922 intermediate.setProfile(profile); in ProcessDeferred()
939 SetupBuiltinSymbolTable(version, profile, spvVersion, source); in ProcessDeferred()
943 [MapProfileToIndex(profile)] in ProcessDeferred()
954 …if (! AddContextSpecificSymbols(resources, compiler->infoSink, *symbolTable, version, profile, spv… in ProcessDeferred()
966 …eContextBase> parseContext(CreateParseContext(*symbolTable, intermediate, version, profile, source, in ProcessDeferred()