Home
last modified time | relevance | path

Searched refs:TField (Results 1 – 25 of 55) sorted by relevance

123

/external/angle/src/compiler/translator/TranslatorMetalDirect/
DModifyStruct.h36 using Func = bool (*)(const TField &);
37 static bool False(const TField &) { return false; } in False()
38 static bool True(const TField &) { return true; } in True()
45 using Func = int (*)(const TField &);
46 static int DontSaturate(const TField &) { return 0; } in DontSaturate()
47 static int FullySaturate(const TField &) { return 4; } in FullySaturate()
DModifyStruct.cpp82 PathItem(const TField &field) : field(&field), type(Type::Field) {} in PathItem()
89 const TField *field;
318 void addModifiedField(const TField &field, in addModifiedField()
330 TField *modifiedField = new TField(&newType, pathName, field.line(), field.symbolType()); in addModifiedField()
432 new TField(padType, name.rawName(), kNoSourceLoc, name.symbolType())); in addPadding()
469 TField &curr = *modifiedFields[i]; in introducePacking()
508 const TField &next = *modifiedFields[j]; in introducePacking()
537 const TField *const first = fields.front(); in introducePadding()
539 for (TField *field : fields) in introducePadding()
631 const TField &field,
[all …]
DSymbolEnv.h33 VarField(const TField &field) : mField(&field) {} in VarField()
37 ANGLE_INLINE const TField *field() const { return mField; } in field()
46 const TField *mField = nullptr;
64 const sh::TField *field = x.field();
65 return std::hash<const sh::TField *>()(field);
188 void markAsPacked(const TField &field);
189 bool isPacked(const TField &field) const;
217 std::unordered_set<const TField *> mPackedFields;
DRewriteKeywords.cpp33 Remapping<TField> modifiedFields;
58 const TField *createRenamed(const TField &field) in createRenamed()
61 new TField(const_cast<TType *>(&getRenamedOrOriginal(*field.type())), in createRenamed()
70 for (const TField *field : fieldList) in createRenamed()
72 renamed->push_back(const_cast<TField *>(&getRenamedOrOriginal(*field))); in createRenamed()
196 const TField *tryGetRenamed(const TField &field) in tryGetRenamed()
271 bool needsRenaming(const TField &field, bool recursive) const in needsRenaming()
279 for (const TField *field : fieldList) in needsRenaming()
DRewriteGlobalQualifierDecls.h23 void insert(const TField &field) { mInvariants.insert(&field); } in insert()
30 bool contains(const TField &field) const in contains()
DEmitMetal.cpp41 explicit VarDecl(const TField &field) : mField(&field), mIsField(true) {} in VarDecl()
49 ANGLE_INLINE const TField &field() const in field()
70 const TField *mField;
137 void emitNameOf(const TField &object);
153 void emitFieldDeclaration(const TField &field,
156 void emitAttributeDeclaration(const TField &field, FieldAnnotationIndices &annotationIndices);
157 void emitUniformBufferDeclaration(const TField &field,
170 const TField &getDirectField(const TFieldListCollection &fieldsNode,
172 const TField &getDirectField(const TIntermTyped &fieldsNode, TIntermTyped &indexNode);
835 void GenMetalTraverser::emitNameOf(const TField &object) in emitNameOf()
[all …]
DLayout.h81 ANGLE_NO_DISCARD Layout GlslStructLayoutOf(TField const *const *begin,
82 TField const *const *end,
DLayout.cpp129 for (const TField *field : fields) in MetalLayoutOf()
244 static Layout CommonGlslStructLayoutOf(TField const *const *begin, in CommonGlslStructLayoutOf()
245 TField const *const *end, in CommonGlslStructLayoutOf()
378 ANGLE_NO_DISCARD Layout sh::GlslStructLayoutOf(TField const *const *begin, in GlslStructLayoutOf()
379 TField const *const *end, in GlslStructLayoutOf()
DRewritePipelines.cpp229 new TField(textureEnvType, var->name(), kNoSourceLoc, var->symbolType())); in createInternalPipelineStruct()
239 auto *field = new TField(&type, var->name(), kNoSourceLoc, var->symbolType()); in createInternalPipelineStruct()
252 auto *field = new TField(&type, var->name(), kNoSourceLoc, var->symbolType()); in createInternalPipelineStruct()
393 for (const TField *field : mPipelineStruct.external->fields()) in getUpdatedFunction()
405 for (const TField *field : mPipelineStruct.external->fields()) in getUpdatedFunction()
409 for (const TField *subfield : textureEnv->fields()) in getUpdatedFunction()
460 const TField *externalField = mPipelineStruct.external->fields()[i]; in getUpdatedFunction()
461 const TField *internalField = mPipelineStruct.internal->fields()[i]; in getUpdatedFunction()
742 for (const TField *field : mPipelineStruct.external->fields()) in visitMain()
759 for (const TField *field : fields) in visitMain()
DToposortStructs.cpp41 for (const TField *f : fs) in BuildGraphImpl()
167 const TField &aField = *aFields[idx]; in CreateStructEqualityFunction()
285 for (const TField *field : structure.fields()) in useStruct()
DSymbolEnv.cpp392 auto *texture = new TField(textureType, ImmutableString("texture"), kNoSourceLoc, in getTextureEnv()
397 new TField(new TType(&getSamplerStruct(), false), ImmutableString("sampler"), in getTextureEnv()
479 void SymbolEnv::markAsPacked(const TField &field) in markAsPacked()
484 bool SymbolEnv::isPacked(const TField &field) const in isPacked()
/external/angle/src/compiler/translator/tree_util/
DDriverUniform.cpp62 TField *driverUniformField = in addComputeDriverUniformsToShader()
63 new TField(kDriverUniformTypes[uniformIndex], in addComputeDriverUniformsToShader()
100 TField *driverUniformField = in createUniformFields()
101 new TField(kDriverUniformTypes[uniformIndex], in createUniformFields()
120 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in createEmulatedDepthRangeType()
123 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in createEmulatedDepthRangeType()
126 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in createEmulatedDepthRangeType()
130 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in createEmulatedDepthRangeType()
285 TField *driverUniformField = in createUniformFields()
286 new TField(kDriverUniformTypesExt[uniformIndex], in createUniformFields()
/external/angle/src/compiler/translator/
DValidateVaryingLocations.cpp30 int GetFieldLocationCount(const TField *field) in GetFieldLocationCount()
60 for (const TField *field : structure->fields()) in GetStructLocationCount()
70 for (const TField *field : varyingType.getInterfaceBlock()->fields()) in GetInterfaceBlockLocationCount()
89 for (const TField *field : varyingType.getStruct()->fields()) in GetLocationCount()
137 const TField *field;
143 const TField *field, in MarkVaryingLocations()
227 for (const TField *field : varyingType.getInterfaceBlock()->fields()) in ValidateShaderInterfaceAndAssignLocations()
DShaderStorageBlockOutputHLSL.cpp123 const TField *GetFieldMemberInShaderStorageBlock(const TInterfaceBlock *interfaceBlock, in GetFieldMemberInShaderStorageBlock()
126 for (const TField *field : interfaceBlock->fields()) in GetFieldMemberInShaderStorageBlock()
169 const TField *field, in MapVariableToField()
183 const TField *subField = subStruct->fields()[index]; in MapVariableToField()
239 const TField *structField = iter->second; in enterStructAccess()
255 const TField *field = iter->second; in encodeVariable()
283 const TField *field = interfaceBlock->fields()[index]; in GetShaderStorageBlockMembersInfo()
473 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in traverseSSBOAccess()
484 const TField *field = in traverseSSBOAccess()
528 const TField *field = in traverseNode()
[all …]
DShaderStorageBlockOutputHLSL.h35 using BlockMemberInfoMap = std::map<const TField *, BlockMemberInfo>;
37 using ShaderVarToFieldMap = std::map<std::string, const TField *>;
74 TIntermTyped *createFieldOffset(const TField *field, BlockMemberInfo *blockMemberInfo);
DFlagStd140Structs.h17 class TField; variable
24 TField *field;
DValidateTypeSizeLimitations.cpp124 for (const TField *field : fields) in setFieldOrVariableProperties()
142 for (const TField *field : fields) in setFieldOrVariableProperties()
DStructureHLSL.cpp41 for (const TField *field : fields) in Define()
315 for (const TField *field : structure.fields()) in defineVariants()
397 for (const TField *field : fields) in addStructConstructor()
656 for (const TField *field : fields) in storeStd140ElementIndex()
DOutputGLSLBase.h47 void writeFieldLayoutQualifier(const TField *field);
81 ImmutableString hashFieldName(const TField *field);
/external/angle/src/compiler/translator/tree_ops/
DRewriteRowMajorMatrices.cpp36 bool DoesFieldContainRowMajorMatrix(const TField *field, bool isBlockRowMajor) in DoesFieldContainRowMajorMatrix()
53 TField *DuplicateField(const TField *field) in DuplicateField()
55 return new TField(new TType(*field->type()), field->name(), field->line(), field->symbolType()); in DuplicateField()
189 const angle::HashMap<const TField *, bool> &convertedFields) in IsConvertedField() argument
210 const TField *field = interfaceBlock->fields()[fieldIndex]; in IsConvertedField()
472 for (const TField *field : fields) in visitDeclaration()
538 typedef angle::HashMap<const TField *, bool> InterfaceBlockFieldConverted;
575 for (const TField *field : block->fields()) in convertInterfaceBlock()
577 TField *newField = nullptr; in convertInterfaceBlock()
665 const TVector<TField *> fields = interfaceBlock->fields(); in convertNamelessInterfaceBlockField()
[all …]
DForcePrecisionQualifier.cpp65 const TField *field = fields[i]; in visitDeclaration()
74 for (const TField *field : fields) in visitDeclaration()
DRewriteStructSamplers.cpp433 const TField *field = structure->fields()[fieldIndex]; in stripStructSpecifierSamplers()
467 TField *newField = in stripStructSpecifierSamplers()
468 new TField(newType, field->name(), field->line(), field->symbolType()); in stripStructSpecifierSamplers()
520 for (const TField *field : structure->fields()) in extractStructSamplerUniforms()
557 const TField *field, in extractFieldSamplers()
573 for (const TField *nestedField : structure->fields()) in extractFieldSamplers()
DNameNamelessUniformBuffers.cpp91 const TVector<TField *> fields = block->fields(); in visitSymbol()
94 const TField *field = fields[fieldIndex]; in visitSymbol()
DRewriteAtomicCounters.cpp34 TField *countersField = in DeclareAtomicCountersBuffers()
35 new TField(counterType, kAtomicCounterFieldName, TSourceLoc(), SymbolType::AngleInternal); in DeclareAtomicCountersBuffers()
/external/angle/src/compiler/translator/tree_ops/vulkan/
DDeclarePerVertexBlocks.cpp84 for (const TField *field : type->getInterfaceBlock()->fields()) in visitSymbol()
234 fields->push_back(new TField(positionType, ImmutableString("gl_Position"), TSourceLoc(), in declarePerVertex()
236 fields->push_back(new TField(pointSizeType, ImmutableString("gl_PointSize"), TSourceLoc(), in declarePerVertex()
238 fields->push_back(new TField(clipDistanceType, ImmutableString("gl_ClipDistance"), in declarePerVertex()
240 fields->push_back(new TField(cullDistanceType, ImmutableString("gl_CullDistance"), in declarePerVertex()

123