Lines Matching refs:structure

92     TStructure *structure = type.getStruct();
106 else if (structure)
108 const TString &structName = QualifiedStructNameString(*structure,
140 TString StructureHLSL::defineQualified(const TStructure &structure, bool useHLSLRowMajorPacking, bool useStd140Packing)
145 return define(structure, useHLSLRowMajorPacking, useStd140Packing, &padHelper);
149 return define(structure, useHLSLRowMajorPacking, useStd140Packing, NULL);
153 TString StructureHLSL::defineNameless(const TStructure &structure)
155 return define(structure, false, false, NULL);
158 TString StructureHLSL::define(const TStructure &structure, bool useHLSLRowMajorPacking,
161 const TFieldList &fields = structure.fields();
162 const bool isNameless = (structure.name() == "");
163 const TString &structName = QualifiedStructNameString(structure, useHLSLRowMajorPacking,
186 string += " " + fieldTypeString + " " + DecorateField(field.name(), structure) + ArrayString(fieldType) + ";\n";
220 const TStructure* structure = type.getStruct();
221 if (structure)
226 storeStd140ElementIndex(*structure, false);
227 storeStd140ElementIndex(*structure, true);
229 const TString &structString = defineQualified(*structure, false, false);
235 defineQualified(*structure, true, false) +
238 TString std140String = defineQualified(*structure, false, true);
240 defineQualified(*structure, true, true) +
249 const TFieldList &fields = structure->fields();
292 constructor += " " + name + " structure = {";
444 " return structure;\n"
475 void StructureHLSL::storeStd140ElementIndex(const TStructure &structure, bool useHLSLRowMajorPacking)
478 const TFieldList &fields = structure.fields();
486 const TString &structName = QualifiedStructNameString(structure, useHLSLRowMajorPacking, true);