Lines Matching refs:TString
23 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> ¶meters) 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()
198 TString padding; in prePaddingString()
208 TString Std140PaddingHelper::postPaddingString(const TType &type, in postPaddingString()
226 TString forcePaddingStr; in postPaddingString()
258 const TString &structName = in postPaddingString()
273 TString padding; in postPaddingString()
288 TString StructureHLSL::defineQualified(const TStructure &structure, in defineQualified()
305 TString StructureHLSL::defineNameless(const TStructure &structure) in defineNameless()
311 const TString &name) in defineVariants()
330 const TString &structString = defineQualified(structure, false, false, false); in defineVariants()
335 TString rowMajorString = "#pragma pack_matrix(row_major)\n" + in defineVariants()
339 TString std140String = defineQualified(structure, false, true, false); in defineVariants()
340 TString std140RowMajorString = "#pragma pack_matrix(row_major)\n" + in defineVariants()
346 TString std140ForcePaddingString = defineQualified(structure, false, true, true); in defineVariants()
347 TString std140RowMajorForcePaddingString = "#pragma pack_matrix(row_major)\n" + in defineVariants()
362 const TString name = StructNameString(structure); in ensureStructDefined()
373 TString StructureHLSL::addStructConstructor(const TStructure &structure) in addStructConstructor()
375 const TString name = StructNameString(structure); in addStructConstructor()
379 return TString(); // Nameless structures don't have constructors in addStructConstructor()
387 const TString constructorFunctionName = TString(name) + "_ctor"; in addStructConstructor()
388 TString *constructor = &definedStruct->second->constructor; in addStructConstructor()
434 TString StructureHLSL::addBuiltInConstructor(const TType &type, const TIntermSequence *parameters) in addBuiltInConstructor()
444 const TString constructorFunctionName = in addBuiltInConstructor()
445 TString(type.getBuiltInTypeNameString()) + "_ctor" + DisambiguateFunctionName(parameters); in addBuiltInConstructor()
446 TString constructor = TypeString(ctorType) + " " + constructorFunctionName + "("; in addBuiltInConstructor()
475 constructor += TString((row == col) ? "x0" : "0.0"); in addBuiltInConstructor()
492 constructor += TString("x0") + "[" + str(col) + "][" + str(row) + "]"; in addBuiltInConstructor()
496 constructor += TString((row == col) ? "1.0" : "0.0"); in addBuiltInConstructor()
663 const TString &structName = in storeStd140ElementIndex()