Home
last modified time | relevance | path

Searched refs:TString (Results 1 – 25 of 103) sorted by relevance

12345

/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DStructureHLSL.h29 explicit Std140PaddingHelper(const std::map<TString, int> &structElementIndexes,
36 TString prePaddingString(const TType &type);
37 TString postPaddingString(const TType &type, bool useHLSLRowMajorPacking);
40 TString next();
44 const std::map<TString, int> *mStructElementIndexes;
53 TString addStructConstructor(const TStructure &structure);
54 TString addBuiltInConstructor(const TType &type, const TIntermSequence *parameters);
56 static TString defineNameless(const TStructure &structure);
66 std::map<TString, int> mStd140StructElementIndexes;
75 TString constructor;
[all …]
DStructureHLSL.cpp23 TString Define(const TStructure &structure, in Define()
30 const TString &structName = in Define()
32 const TString declareString = (isNameless ? "struct" : "struct " + structName); in Define()
34 TString string; in Define()
45 const TString &fieldTypeString = in Define()
72 TString WriteParameterList(const std::vector<TType> &parameters) in WriteParameterList()
74 TString parameterList; in WriteParameterList()
92 Std140PaddingHelper::Std140PaddingHelper(const std::map<TString, int> &structElementIndexes, in Std140PaddingHelper() argument
111 TString Std140PaddingHelper::next() in next()
154 TString Std140PaddingHelper::prePaddingString(const TType &type) in prePaddingString()
[all …]
DUtilsHLSL.h117 TString Decorate(const ImmutableString &string);
118 TString DecorateVariableIfNeeded(const TVariable &variable);
119 TString DecorateFunctionIfNeeded(const TFunction *func);
120 TString DecorateField(const ImmutableString &string, const TStructure &structure);
121 TString DecoratePrivate(const ImmutableString &privateText);
122 TString TypeString(const TType &type);
123 TString StructNameString(const TStructure &structure);
124 TString QualifiedStructNameString(const TStructure &structure,
131 TString DisambiguateFunctionName(const TFunction *func);
132 TString DisambiguateFunctionName(const TIntermSequence *args);
DUtilsHLSL.cpp23 TString *disambiguatingStringOut) in DisambiguateFunctionNameForParameterType()
824 TString DecorateField(const ImmutableString &string, const TStructure &structure) in DecorateField()
831 return TString(string.data()); in DecorateField()
834 TString DecoratePrivate(const ImmutableString &privateText) in DecoratePrivate()
836 return "dx_" + TString(privateText.data()); in DecoratePrivate()
839 TString Decorate(const ImmutableString &string) in Decorate()
843 return "_" + TString(string.data()); in Decorate()
846 return TString(string.data()); in Decorate()
849 TString DecorateVariableIfNeeded(const TVariable &variable) in DecorateVariableIfNeeded()
859 return TString(name.data()); in DecorateVariableIfNeeded()
[all …]
DResourcesHLSL.cpp40 static TString InterfaceBlockFieldTypeString(const TField &field, TLayoutBlockStorage blockStorage) in InterfaceBlockFieldTypeString()
50 const TString &matrixPackString = in InterfaceBlockFieldTypeString()
66 static TString InterfaceBlockStructName(const TInterfaceBlock &interfaceBlock) in InterfaceBlockStructName()
190 const TString &name, in assignSamplerInStructUniformRegister()
210 const TMap<const TVariable *, TString> &samplerInStructSymbolsToAPINames, in outputHLSLSamplerUniformGroup()
253 TString suffix = TextureGroupSuffix(textureGroup); in outputHLSLSamplerUniformGroup()
315 TString suffix = TextureGroupSuffix(textureGroup); in outputHLSLReadonlyImageUniformGroup()
337 TString suffix = RWTextureGroupSuffix(textureGroup); in outputHLSLImageUniformGroup()
370 const TString &typeName = ((structure && structure->symbolType() != SymbolType::Empty) in outputUniform()
374 const TString &registerString = in outputUniform()
[all …]
DResourcesHLSL.h41 TString uniformBlocksHeader(const ReferencedInterfaceBlocks &referencedInterfaceBlocks);
42 TString shaderStorageBlocksHeader(const ReferencedInterfaceBlocks &referencedInterfaceBlocks);
45 static TString InterfaceBlockInstanceString(const ImmutableString &instanceName,
66 TString uniformBlockString(const TInterfaceBlock &interfaceBlock,
71 TString shaderStorageBlockString(const TInterfaceBlock &interfaceBlock,
75 TString uniformBlockMembersString(const TInterfaceBlock &interfaceBlock,
77 TString uniformBlockStructString(const TInterfaceBlock &interfaceBlock);
97 const TString &name,
104 const TMap<const TVariable *, TString> &samplerInStructSymbolsToAPINames,
DOutputHLSL.h75 TString zeroInitializer(const TType &type) const;
143 TString addStructEqualityFunction(const TStructure &structure);
144 TString addArrayEqualityFunction(const TType &type);
145 TString addArrayAssignmentFunction(const TType &type);
146 TString addArrayConstructIntoFunction(const TType &type);
229 TString structInitializerString(int indent, const TType &type, const TString &name) const;
233 TString functionName;
234 TString functionDefinition;
269 TString generateStructMapping(const std::vector<MappedStruct> &std140Structs) const;
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DStructureHLSL.h29 explicit Std140PaddingHelper(const std::map<TString, int> &structElementIndexes,
36 TString prePaddingString(const TType &type, bool forcePadding);
37 TString postPaddingString(const TType &type,
43 TString next();
47 const std::map<TString, int> *mStructElementIndexes;
56 TString addStructConstructor(const TStructure &structure);
57 TString addBuiltInConstructor(const TType &type, const TIntermSequence *parameters);
59 static TString defineNameless(const TStructure &structure);
69 std::map<TString, int> mStd140StructElementIndexes;
78 TString constructor;
[all …]
DStructureHLSL.cpp23 TString Define(const TStructure &structure, in Define()
31 const TString &structName = QualifiedStructNameString(structure, useHLSLRowMajorPacking, in Define()
33 const TString declareString = (isNameless ? "struct" : "struct " + structName); in Define()
35 TString string; in Define()
48 const TString &fieldTypeString = in Define()
77 TString WriteParameterList(const std::vector<TType> &parameters) in WriteParameterList()
79 TString parameterList; in WriteParameterList()
103 Std140PaddingHelper::Std140PaddingHelper(const std::map<TString, int> &structElementIndexes, in Std140PaddingHelper() argument
122 TString Std140PaddingHelper::next() in next()
194 TString Std140PaddingHelper::prePaddingString(const TType &type, bool forcePadding) in prePaddingString()
[all …]
DUtilsHLSL.h117 TString Decorate(const ImmutableString &string);
118 TString DecorateVariableIfNeeded(const TVariable &variable);
119 TString DecorateFunctionIfNeeded(const TFunction *func);
120 TString DecorateField(const ImmutableString &string, const TStructure &structure);
121 TString DecoratePrivate(const ImmutableString &privateText);
122 TString TypeString(const TType &type);
123 TString StructNameString(const TStructure &structure);
124 TString QualifiedStructNameString(const TStructure &structure,
132 TString DisambiguateFunctionName(const TFunction *func);
133 TString DisambiguateFunctionName(const TIntermSequence *args);
DUtilsHLSL.cpp25 TString *disambiguatingStringOut) in DisambiguateFunctionNameForParameterType()
827 TString DecorateField(const ImmutableString &string, const TStructure &structure) in DecorateField()
834 return TString(string.data()); in DecorateField()
837 TString DecoratePrivate(const ImmutableString &privateText) in DecoratePrivate()
839 return "dx_" + TString(privateText.data()); in DecoratePrivate()
842 TString Decorate(const ImmutableString &string) in Decorate()
846 return "_" + TString(string.data()); in Decorate()
849 return TString(string.data()); in Decorate()
852 TString DecorateVariableIfNeeded(const TVariable &variable) in DecorateVariableIfNeeded()
862 return TString(name.data()); in DecorateVariableIfNeeded()
[all …]
DResourcesHLSL.h41 TString uniformBlocksHeader(
44 TString shaderStorageBlocksHeader(const ReferencedInterfaceBlocks &referencedInterfaceBlocks);
47 static TString InterfaceBlockInstanceString(const ImmutableString &instanceName,
74 TString uniformBlockString(const TInterfaceBlock &interfaceBlock,
78 TString uniformBlockWithOneLargeArrayMemberString(const TInterfaceBlock &interfaceBlock,
83 TString shaderStorageBlockString(const TInterfaceBlock &interfaceBlock,
87 TString uniformBlockMembersString(const TInterfaceBlock &interfaceBlock,
89 TString uniformBlockStructString(const TInterfaceBlock &interfaceBlock);
109 const TString &name,
116 const TMap<const TVariable *, TString> &samplerInStructSymbolsToAPINames,
DResourcesHLSL.cpp40 static TString InterfaceBlockFieldTypeString(const TField &field, in InterfaceBlockFieldTypeString()
52 const TString &matrixPackString = in InterfaceBlockFieldTypeString()
71 static TString InterfaceBlockStructName(const TInterfaceBlock &interfaceBlock) in InterfaceBlockStructName()
102 static TString InterfaceBlockScalarVectorFieldPaddingString(const TType &type) in InterfaceBlockScalarVectorFieldPaddingString()
275 const TString &name, in assignSamplerInStructUniformRegister()
295 const TMap<const TVariable *, TString> &samplerInStructSymbolsToAPINames, in outputHLSLSamplerUniformGroup()
338 TString suffix = TextureGroupSuffix(textureGroup); in outputHLSLSamplerUniformGroup()
400 TString suffix = TextureGroupSuffix(textureGroup); in outputHLSLReadonlyImageUniformGroup()
422 TString suffix = RWTextureGroupSuffix(textureGroup); in outputHLSLImageUniformGroup()
455 const TString &typeName = ((structure && structure->symbolType() != SymbolType::Empty) in outputUniform()
[all …]
DOutputHLSL.h77 TString zeroInitializer(const TType &type) const;
146 TString addStructEqualityFunction(const TStructure &structure);
147 TString addArrayEqualityFunction(const TType &type);
148 TString addArrayAssignmentFunction(const TType &type);
149 TString addArrayConstructIntoFunction(const TType &type);
235 TString structInitializerString(int indent, const TType &type, const TString &name) const;
239 TString functionName;
240 TString functionDefinition;
275 TString generateStructMapping(const std::vector<MappedStruct> &std140Structs) const;
/third_party/glslang/glslang/HLSL/
DhlslParseHelper.h53 const TString sourceEntryPointName,
70 bool builtInName(const TString&);
72 void handlePragma(const TSourceLoc&, const TVector<TString>&) override;
73 TIntermTyped* handleVariable(const TSourceLoc&, const TString* string);
79 TIntermTyped* handleDotDereference(const TSourceLoc&, TIntermTyped* base, const TString& field);
80 bool isBuiltInMethod(const TSourceLoc&, TIntermTyped* base, const TString& field);
107 void handleSemantic(TSourceLoc, TQualifier&, TBuiltInVariable, const TString& upperCase);
108 void handlePackOffset(const TSourceLoc&, TQualifier&, const glslang::TString& location,
109 const glslang::TString* component);
110 …Register(const TSourceLoc&, TQualifier&, const glslang::TString* profile, const glslang::TString& …
[all …]
/third_party/glslang/glslang/MachineIndependent/
DParseHelper.h82 const TString* entryPoint = nullptr)
126 …virtual void setPragmaCallback(const std::function<void(int, const TVector<TString>&)>& func) { pr… in setPragmaCallback()
132 virtual void handlePragma(const TSourceLoc&, const TVector<TString>&) = 0;
159 …virtual void growGlobalUniformBlock(const TSourceLoc&, TType&, const TString& memberName, TTypeLis…
163 void renameShaderFunction(TString*& name) const in renameShaderFunction()
205 TString sourceEntryPointName;
210 std::function<void(int, const TVector<TString>&)> pragmaCallback;
221 virtual void parseSwizzleSelector(const TSourceLoc&, const TString&, int size,
285 const TString* entryPoint = nullptr);
295 void reservedErrorCheck(const TSourceLoc&, const TString&);
[all …]
DInitialize.h66 virtual const TString& getCommonString() const { return commonBuiltins; } in getCommonString()
67 …virtual const TString& getStageString(EShLanguage language) const { return stageBuiltins[language]… in getStageString()
73 TString commonBuiltins;
74 TString stageBuiltins[EShLangCount];
97 void addSubpassSampling(TSampler, const TString& typeName, int version, EProfile profile);
98 void addQueryFunctions(TSampler, const TString& typeName, int version, EProfile profile);
99 void addImageFunctions(TSampler, const TString& typeName, int version, EProfile profile);
100 void addSamplingFunctions(TSampler, const TString& typeName, int version, EProfile profile);
101 void addGatherFunctions(TSampler, const TString& typeName, int version, EProfile profile);
DSymbolTable.h87 explicit TSymbol(const TString *n) : name(n), extensions(0), writable(true) { } in POOL_ALLOCATOR_NEW_DELETE()
91 virtual const TString& getName() const { return *name; } in getName()
92 virtual void changeName(const TString* newName) { name = newName; } in changeName()
95 TString newName(prefix); in addPrefix()
99 virtual const TString& getMangledName() const { return getName(); } in getMangledName()
132 const TString *name;
158 TVariable(const TString *name, const TType& t, bool uT = false )
224 TString *name;
248 TFunction(const TString *name, const TType& retType, TOperator tOp = EOpNull) :
291 virtual void removePrefix(const TString& prefix) in removePrefix()
[all …]
Dreflection.cpp98 TString baseName = base.getName(); in addUniform()
103 const TString& blockName = base.getType().getTypeName(); in addUniform()
125 const TString &name = base.getName(); in addPipeIOVariable()
139 TString baseName; in addPipeIOVariable()
141 baseName = anonymous ? TString() : type.getTypeName(); in addPipeIOVariable()
143 baseName = anonymous ? TString() : name; in addPipeIOVariable()
251 …void blowUpActiveAggregate(const TType& baseType, const TString& baseName, const TList<TIntermBina… in blowUpActiveAggregate()
266 TString name = baseName; in blowUpActiveAggregate()
281 TString newBaseName = name; in blowUpActiveAggregate()
284 newBaseName.append(TString("[0]")); in blowUpActiveAggregate()
[all …]
DLiveTraverser.h71 void pushFunction(const TString& name) in pushFunction()
83 void pushGlobalReference(const TString& name) in pushGlobalReference()
146 void addGlobalReference(const TString& name) in addGlobalReference()
156 typedef std::unordered_set<TString> TLiveFunctions;
158 typedef std::unordered_set<TString> TLiveGlobals;
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DParseHelper.h114 …const TVariable *getNamedVariable(const TSourceLoc &location, const TString *name, const TSymbol *…
116 bool parseVectorFields(const TString&, int vecSize, TVectorFields&, const TSourceLoc &line);
118 bool reservedErrorCheck(const TSourceLoc &line, const TString& identifier);
119 void assignError(const TSourceLoc &line, const char* op, TString left, TString right);
120 void unaryOpError(const TSourceLoc &line, const char* op, TString operand);
121 void binaryOpError(const TSourceLoc &line, const char* op, TString left, TString right);
131 bool voidErrorCheck(const TSourceLoc&, const TString&, const TBasicType&);
138 …bool nonInitConstErrorCheck(const TSourceLoc &line, TString& identifier, TPublicType& type, bool a…
139 bool nonInitErrorCheck(const TSourceLoc &line, const TString& identifier, TPublicType& type);
141 bool extensionErrorCheck(const TSourceLoc &line, const TString&);
[all …]
DTypes.h31 TField(TType *type, TString *name, const TSourceLoc &line) in POOL_ALLOCATOR_NEW_DELETE()
49 const TString &name() const in name()
60 TString *mName;
75 const TString &name() const in name()
84 const TString &mangledName() const in mangledName()
98 TFieldListCollection(const TString *name, TFieldList *fields) in TFieldListCollection()
104 TString buildMangledName() const;
106 virtual TString mangledNamePrefix() const = 0;
108 const TString *mName;
111 mutable TString mMangledName;
[all …]
DSymbolTable.h58 TSymbol(const TString *n) : name(n) { } in POOL_ALLOCATOR_NEW_DELETE()
61 const TString& getName() const { return *name; } in getName()
62 virtual const TString& getMangledName() const { return getName(); } in getMangledName()
70 const TString *name;
87 …TVariable(const TString *name, const TType& t, bool uT = false ) : TSymbol(name), type(t), userTyp… in TSymbol()
132 TString *name;
148 …TFunction(const TString *name, const TType& retType, TOperator tOp = EOpNull, const char *ext = ""…
159 static TString mangleName(const TString& name) { return name + '('; } in mangleName()
160 static TString unmangleName(const TString& mangledName) in unmangleName()
162 return TString(mangledName.c_str(), mangledName.find_first_of('(')); in unmangleName()
[all …]
DSymbolTable.cpp50 void TType::buildMangledName(TString& mangledName) in buildMangledName()
149 TString TFieldListCollection::buildMangledName() const in buildMangledName()
151 TString mangledName(mangledNamePrefix()); in buildMangledName()
221 TSymbol *TSymbolTableLevel::find(const TString &name) const in find()
230 TSymbol *TSymbolTable::find(const TString &name, int shaderVersion, bool *builtIn, bool *sameScope)… in find()
260 TSymbol *TSymbolTable::findBuiltIn(const TString &name, int shaderVersion) const in findBuiltIn()
/third_party/glslang/glslang/Include/
DCommon.h128 typedef std::basic_string <char, std::char_traits<char>, TStringAllocator> TString; typedef
135 template<> struct hash<glslang::TString> {
136 std::size_t operator()(const glslang::TString& s) const
156 inline TString* NewPoolTString(const char* s)
158 void* memory = GetThreadPoolAllocator().allocate(sizeof(TString));
159 return new(memory) TString(s);
213 inline const TString String(const int i, const int base = 10)
220 inline const TString String(const int i, const int /*base*/ = 10)
241 TString qstr = quoteStringName ? ("\"" + *name + "\"") : *name;
254TString* name; // descriptive name for this string, when a textual name is available, otherwise nu…
[all …]

12345