Home
last modified time | relevance | path

Searched refs:fieldType (Results 1 – 25 of 72) sorted by relevance

123

/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DFieldInfo.java65 Field field, int fieldNumber, FieldType fieldType, boolean enforceUtf8) { in forField() argument
68 checkNotNull(fieldType, "fieldType"); in forField()
69 if (fieldType == FieldType.MESSAGE_LIST || fieldType == FieldType.GROUP_LIST) { in forField()
75 fieldType, in forField()
90 Field field, int fieldNumber, FieldType fieldType, Field cachedSizeField) { in forPackedField() argument
93 checkNotNull(fieldType, "fieldType"); in forPackedField()
94 if (fieldType == FieldType.MESSAGE_LIST || fieldType == FieldType.GROUP_LIST) { in forPackedField()
100 fieldType, in forPackedField()
115 Field field, int fieldNumber, FieldType fieldType, Class<?> messageClass) { in forRepeatedMessageField() argument
118 checkNotNull(fieldType, "fieldType"); in forRepeatedMessageField()
[all …]
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyRepeatedField.java64 …edField(Ruby runtime, RubyClass klazz, Descriptors.FieldDescriptor.Type fieldType, IRubyObject typ… in RubyRepeatedField() argument
66 this.fieldType = fieldType; in RubyRepeatedField()
79 this.fieldType = Utils.rubyToFieldType(args[0]); in initialize()
80 if (fieldType == Descriptors.FieldDescriptor.Type.MESSAGE in initialize()
81 || fieldType == Descriptors.FieldDescriptor.Type.ENUM) { in initialize()
87 Utils.validateTypeClass(context, fieldType, typeClass); in initialize()
113 value = Utils.checkType(context, fieldType, value, (RubyModule) typeClass); in indexSet()
167 if (!(fieldType == Descriptors.FieldDescriptor.Type.MESSAGE && in push()
169 value = Utils.checkType(context, fieldType, value, (RubyModule) typeClass); in push()
238 if (! fieldType.equals(repeatedField.fieldType) || (typeClass != null && ! in plus()
[all …]
DUtils.java67 …lic static IRubyObject checkType(ThreadContext context, Descriptors.FieldDescriptor.Type fieldType, in checkType() argument
71 switch(fieldType) { in checkType()
79 switch(fieldType) { in checkType()
93 checkIntTypePrecision(context, fieldType, value); in checkType()
109 value = validateStringEncoding(context, fieldType, value); in checkType()
133 …wrapPrimaryValue(ThreadContext context, Descriptors.FieldDescriptor.Type fieldType, Object value) { in wrapPrimaryValue() argument
135 switch (fieldType) { in wrapPrimaryValue()
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DFieldDescriptor.cs47 private FieldType fieldType; field in Google.Protobuf.Reflection.FieldDescriptor
102 fieldType = GetFieldTypeFromProtoType(proto.Type); in FieldDescriptor()
223 …public bool IsMap => fieldType == FieldType.Message && messageType.Proto.Options != null && messag…
251 public FieldType FieldType => fieldType;
281 if (fieldType != FieldType.Enum)
296 if (fieldType != FieldType.Message && fieldType != FieldType.Group)
367 fieldType = FieldType.Message; in CrossLink()
371 fieldType = FieldType.Enum; in CrossLink()
379 if (fieldType == FieldType.Message || fieldType == FieldType.Group) in CrossLink()
392 else if (fieldType == FieldType.Enum) in CrossLink()
[all …]
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonemetadata.pb.js2365 fieldType: goog.proto2.Message.FieldType.STRING, property
2371 fieldType: goog.proto2.Message.FieldType.STRING, property
2377 fieldType: goog.proto2.Message.FieldType.STRING, property
2382 fieldType: goog.proto2.Message.FieldType.STRING, property
2387 fieldType: goog.proto2.Message.FieldType.BOOL, property
2393 fieldType: goog.proto2.Message.FieldType.STRING, property
2422 fieldType: goog.proto2.Message.FieldType.STRING, property
2428 fieldType: goog.proto2.Message.FieldType.INT32, property
2434 fieldType: goog.proto2.Message.FieldType.INT32, property
2439 fieldType: goog.proto2.Message.FieldType.STRING, property
[all …]
Dphonenumber.pb.js494 fieldType: goog.proto2.Message.FieldType.INT32, property
500 fieldType: goog.proto2.Message.FieldType.UINT64, property
505 fieldType: goog.proto2.Message.FieldType.STRING, property
510 fieldType: goog.proto2.Message.FieldType.BOOL, property
515 fieldType: goog.proto2.Message.FieldType.INT32, property
521 fieldType: goog.proto2.Message.FieldType.STRING, property
526 fieldType: goog.proto2.Message.FieldType.ENUM, property
532 fieldType: goog.proto2.Message.FieldType.STRING, property
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteStructSamplers.cpp434 const TType &fieldType = *field->type(); in stripStructSpecifierSamplers() local
437 if (!fieldType.isSampler() && !isRemovedStructType(fieldType)) in stripStructSpecifierSamplers()
443 if (fieldType.isStructureContainingSamplers()) in stripStructSpecifierSamplers()
445 const TStructure *fieldStruct = fieldType.getStruct(); in stripStructSpecifierSamplers()
452 if (fieldType.isArray()) in stripStructSpecifierSamplers()
454 newType->makeArrays(fieldType.getArraySizes()); in stripStructSpecifierSamplers()
460 newType = new TType(fieldType); in stripStructSpecifierSamplers()
560 const TType &fieldType = *field->type(); in extractFieldSamplers() local
561 if (fieldType.isSampler() || fieldType.isStructureContainingSamplers()) in extractFieldSamplers()
565 if (fieldType.isSampler()) in extractFieldSamplers()
[all …]
DForcePrecisionQualifier.cpp66 const TType *fieldType = field->type(); in visitDeclaration() local
67 overwriteVariablePrecision((TType *)fieldType); in visitDeclaration()
76 const TType *fieldType = field->type(); in visitDeclaration() local
77 overwriteVariablePrecision((TType *)fieldType); in visitDeclaration()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
DRecordUniformBlocksWithLargeArrayMember.cpp81 const TType &fieldType = *fields[i]->type(); in IsSupportedTypeForStructuredBuffer() local
83 if (!fieldType.isArray() && !fieldType.getStruct() && in IsSupportedTypeForStructuredBuffer()
84 (fieldType.isScalar() || fieldType.isVector() || in IsSupportedTypeForStructuredBuffer()
85 (fieldType.isMatrix() && in IsSupportedTypeForStructuredBuffer()
86 ((matrixPacking != EmpRowMajor && fieldType.getRows() == 4) || in IsSupportedTypeForStructuredBuffer()
87 (matrixPacking == EmpRowMajor && fieldType.getCols() == 4))))) in IsSupportedTypeForStructuredBuffer()
114 const TType &fieldType = *interfaceBlock.fields()[0]->type(); in CanTranslateUniformBlockToStructuredBuffer() local
115 if (fieldType.getNumArraySizes() == 1u && in CanTranslateUniformBlockToStructuredBuffer()
116 fieldType.getOutermostArraySize() >= kMinArraySizeUseStructuredBuffer) in CanTranslateUniformBlockToStructuredBuffer()
118 return IsSupportedTypeForStructuredBuffer(fieldType); in CanTranslateUniformBlockToStructuredBuffer()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DValidateVaryingLocations.cpp33 const TType *fieldType = field->type(); in GetFieldLocationCount() local
35 if (fieldType->getStruct() != nullptr) in GetFieldLocationCount()
37 field_size = GetStructLocationCount(fieldType->getStruct()); in GetFieldLocationCount()
39 else if (fieldType->isMatrix()) in GetFieldLocationCount()
41 field_size = fieldType->getNominalSize(); in GetFieldLocationCount()
45 ASSERT(fieldType->getSecondarySize() == 1); in GetFieldLocationCount()
49 if (fieldType->isArray()) in GetFieldLocationCount()
51 field_size *= fieldType->getArraySizeProduct(); in GetFieldLocationCount()
91 const TType *fieldType = field->type(); in GetLocationCount() local
92 ASSERT(fieldType->getStruct() == nullptr && !fieldType->isArray()); in GetLocationCount()
DStructureHLSL.cpp44 const TType &fieldType = *field->type(); in Define() local
45 if (!IsSampler(fieldType.getBasicType())) in Define()
47 const TStructure *fieldStruct = fieldType.getStruct(); in Define()
51 : TypeString(fieldType); in Define()
56 fieldType, (memberSize != fields.size() - 1) && forcePadding); in Define()
60 ArrayString(fieldType).data() + ";\n"; in Define()
64 string += padHelper->postPaddingString(fieldType, useHLSLRowMajorPacking, in Define()
317 const TType *fieldType = field->type(); in defineVariants() local
318 if (fieldType->getBasicType() == EbtStruct) in defineVariants()
320 ensureStructDefined(*fieldType->getStruct()); in defineVariants()
[all …]
DOutputGLSLBase.cpp475 const TType *fieldType = fields[i]->type(); in writeConstantUnion() local
476 ASSERT(fieldType != nullptr); in writeConstantUnion()
477 pConstUnion = writeConstantUnion(*fieldType, pConstUnion); in writeConstantUnion()
1161 const TType &fieldType = *field->type(); in declareStruct() local
1162 if (writeVariablePrecision(fieldType.getPrecision())) in declareStruct()
1166 if (fieldType.isPrecise()) in declareStruct()
1168 writePreciseQualifier(fieldType); in declareStruct()
1170 out << getTypeName(fieldType) << " " << hashFieldName(field); in declareStruct()
1171 if (fieldType.isArray()) in declareStruct()
1173 out << ArrayString(fieldType); in declareStruct()
[all …]
DResourcesHLSL.cpp44 const TType &fieldType = *field.type(); in InterfaceBlockFieldTypeString() local
45 const TLayoutMatrixPacking matrixPacking = fieldType.getLayoutQualifier().matrixPacking; in InterfaceBlockFieldTypeString()
47 const TStructure *structure = fieldType.getStruct(); in InterfaceBlockFieldTypeString()
49 if (fieldType.isMatrix()) in InterfaceBlockFieldTypeString()
54 return matrixPackString + " " + TypeString(fieldType); in InterfaceBlockFieldTypeString()
67 return TypeString(fieldType); in InterfaceBlockFieldTypeString()
839 const TType &fieldType = *field.type(); in uniformBlockWithOneLargeArrayMemberString() local
840 if (fieldType.isMatrix()) in uniformBlockWithOneLargeArrayMemberString()
849 else if (fieldType.isVectorArray() || fieldType.isScalarArray()) in uniformBlockWithOneLargeArrayMemberString()
857 hlsl += InterfaceBlockScalarVectorFieldPaddingString(fieldType) + " };\n"; in uniformBlockWithOneLargeArrayMemberString()
[all …]
DTypes.cpp802 const TType *fieldType = field->type(); in containsArrays() local
803 if (fieldType->isArray() || fieldType->isStructureContainingArrays()) in containsArrays()
813 const TType *fieldType = field->type(); in containsMatrices() local
814 if (fieldType->isMatrix() || fieldType->isStructureContainingMatrices()) in containsMatrices()
824 const TType *fieldType = field->type(); in containsType() local
825 if (fieldType->getBasicType() == type || fieldType->isStructureContainingType(type)) in containsType()
835 const TType *fieldType = field->type(); in containsSamplers() local
836 if (IsSampler(fieldType->getBasicType()) || fieldType->isStructureContainingSamplers()) in containsSamplers()
DBuildSPIRV.cpp55 bool IsBlockFieldRowMajorQualified(const TType &fieldType, bool isParentBlockRowMajorQualified) in IsBlockFieldRowMajorQualified() argument
60 const TLayoutMatrixPacking fieldMatrixPacking = fieldType.getLayoutQualifier().matrixPacking; in IsBlockFieldRowMajorQualified()
114 const TType &fieldType = *field->type(); in ToShaderVariable() local
117 fieldType.getLayoutQualifier().matrixPacking; in ToShaderVariable()
121 fieldType.getStruct() != nullptr ? GL_NONE : GLVariableType(fieldType); in ToShaderVariable()
123 var.fields.push_back(ToShaderVariable(fieldType.getStruct(), glType, in ToShaderVariable()
124 fieldType.getArraySizes(), isFieldRowMajor)); in ToShaderVariable()
426 void SpirvTypeSpec::onBlockFieldSelection(const TType &fieldType) in onBlockFieldSelection() argument
431 if (fieldType.getStruct() == nullptr) in onBlockFieldSelection()
435 isRowMajorQualifiedArray = IsNonSquareRowMajorArrayInBlock(fieldType, *this); in onBlockFieldSelection()
[all …]
DSymbol.cpp138 const TType *fieldType = field->type(); in createSamplerSymbols() local
139 if (IsSampler(fieldType->getBasicType()) || fieldType->isStructureContainingSamplers()) in createSamplerSymbols()
145 fieldType->createSamplerSymbols(ImmutableString(fieldName.str()), fieldApiName, in createSamplerSymbols()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DSymbolTable.cpp112 const TType *fieldType = field->type(); in containsArrays() local
113 if(fieldType->isArray() || fieldType->isStructureContainingArrays()) in containsArrays()
123 const TType *fieldType = field->type(); in containsType() local
124 if(fieldType->getBasicType() == type || fieldType->isStructureContainingType(type)) in containsType()
134 const TType *fieldType = field->type(); in containsSamplers() local
135 if(IsSampler(fieldType->getBasicType()) || fieldType->isStructureContainingSamplers()) in containsSamplers()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DStructureHLSL.cpp41 const TType &fieldType = *field->type(); in Define() local
42 if (!IsSampler(fieldType.getBasicType())) in Define()
44 const TStructure *fieldStruct = fieldType.getStruct(); in Define()
48 : TypeString(fieldType); in Define()
52 string += padHelper->prePaddingString(fieldType); in Define()
56 ArrayString(fieldType).data() + ";\n"; in Define()
60 string += padHelper->postPaddingString(fieldType, useHLSLRowMajorPacking); in Define()
250 const TType *fieldType = field->type(); in defineVariants() local
251 if (fieldType->getBasicType() == EbtStruct) in defineVariants()
253 ensureStructDefined(*fieldType->getStruct()); in defineVariants()
[all …]
DTypes.cpp797 const TType *fieldType = field->type(); in containsArrays() local
798 if (fieldType->isArray() || fieldType->isStructureContainingArrays()) in containsArrays()
808 const TType *fieldType = field->type(); in containsMatrices() local
809 if (fieldType->isMatrix() || fieldType->isStructureContainingMatrices()) in containsMatrices()
819 const TType *fieldType = field->type(); in containsType() local
820 if (fieldType->getBasicType() == type || fieldType->isStructureContainingType(type)) in containsType()
830 const TType *fieldType = field->type(); in containsSamplers() local
831 if (IsSampler(fieldType->getBasicType()) || fieldType->isStructureContainingSamplers()) in containsSamplers()
DResourcesHLSL.cpp42 const TType &fieldType = *field.type(); in InterfaceBlockFieldTypeString() local
43 const TLayoutMatrixPacking matrixPacking = fieldType.getLayoutQualifier().matrixPacking; in InterfaceBlockFieldTypeString()
45 const TStructure *structure = fieldType.getStruct(); in InterfaceBlockFieldTypeString()
47 if (fieldType.isMatrix()) in InterfaceBlockFieldTypeString()
52 return matrixPackString + " " + TypeString(fieldType); in InterfaceBlockFieldTypeString()
62 return TypeString(fieldType); in InterfaceBlockFieldTypeString()
757 const TType &fieldType = *field.type(); in uniformBlockMembersString() local
762 hlsl += padHelper.prePaddingString(fieldType); in uniformBlockMembersString()
766 Decorate(field.name()) + ArrayString(fieldType).data() + ";\n"; in uniformBlockMembersString()
773 (fieldType.getLayoutQualifier().matrixPacking == EmpColumnMajor); in uniformBlockMembersString()
[all …]
DValidateVaryingLocations.cpp37 const auto *fieldType = field->type(); in GetLocationCount() local
38 ASSERT(fieldType->getStruct() == nullptr && !fieldType->isArray()); in GetLocationCount()
40 totalLocation += fieldType->getSecondarySize(); in GetLocationCount()
DSymbol.cpp115 const TType *fieldType = field->type(); in createSamplerSymbols() local
116 if (IsSampler(fieldType->getBasicType()) || fieldType->isStructureContainingSamplers()) in createSamplerSymbols()
122 fieldType->createSamplerSymbols(ImmutableString(fieldName.str()), fieldApiName, in createSamplerSymbols()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteStructSamplers.cpp279 const TType &fieldType = *field->type(); in stripStructSpecifierSamplers() local
280 if (!fieldType.isSampler() && !isRemovedStructType(fieldType)) in stripStructSpecifierSamplers()
284 if (fieldType.isStructureContainingSamplers()) in stripStructSpecifierSamplers()
287 mSymbolTable->findUserDefined(fieldType.getStruct()->name()); in stripStructSpecifierSamplers()
291 if (fieldType.isArray()) in stripStructSpecifierSamplers()
293 newType->makeArrays(*fieldType.getArraySizes()); in stripStructSpecifierSamplers()
298 newType = new TType(fieldType); in stripStructSpecifierSamplers()
397 const TType &fieldType = *field->type(); in extractFieldSamplersImpl() local
398 if (fieldType.isSampler() || fieldType.isStructureContainingSamplers()) in extractFieldSamplersImpl()
404 if (fieldType.isSampler()) in extractFieldSamplersImpl()
[all …]
/third_party/protobuf/objectivec/
DGPBMessage.m679 if (field.fieldType == GPBFieldTypeRepeated) {
701 if (field.fieldType == GPBFieldTypeMap) {
943 if (field.fieldType == GPBFieldTypeRepeated) {
977 if (field.fieldType == GPBFieldTypeRepeated) {
1055 if (field.fieldType == GPBFieldTypeRepeated) {
1138 GPBFieldType fieldType = field.fieldType;
1139 if (fieldType == GPBFieldTypeSingle) {
1156 } else if (fieldType == GPBFieldTypeRepeated) {
1163 } else { // fieldType == GPBFieldTypeMap
1313 GPBFieldType fieldType = field.fieldType;
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/compute/
DvktComputeWorkgroupMemoryExplicitLayoutTests.cpp799 glu::DataType fieldType[2]; member
807 for (deUint32 i = 0; i < DE_LENGTH_OF_ARRAY(fieldType); ++i) in testName()
809 if (fieldType[i] == glu::TYPE_INVALID) in testName()
812 name += glu::getDataTypeName(fieldType[i]); in testName()
859 p.useType(m_caseDef.fieldType[0]); in checkSupport()
860 p.useType(m_caseDef.fieldType[1]); in checkSupport()
911 << " " << getDataTypeName(m_caseDef.fieldType[0]) << " x;\n"; in initPrograms()
912 if (m_caseDef.fieldType[1]) in initPrograms()
913 src << " " << getDataTypeName(m_caseDef.fieldType[1]) << " y;\n"; in initPrograms()
933 …src << "(arr[" << de::toString(i) << "].x == " << getDataTypeLiteral(m_caseDef.fieldType[0], "0") … in initPrograms()
[all …]

123