Home
last modified time | relevance | path

Searched refs:TBasicType (Results 1 – 25 of 77) sorted by relevance

1234

/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DUtilsHLSL.h93 HLSLTextureGroup TextureGroup(const TBasicType type,
96 const char *TextureString(const TBasicType type,
99 const char *TextureGroupSuffix(const TBasicType type,
101 const char *TextureTypeSuffix(const TBasicType type,
103 HLSLRWTextureGroup RWTextureGroup(const TBasicType type,
106 const char *RWTextureString(const TBasicType type, TLayoutImageInternalFormat imageInternalFormat);
108 const char *RWTextureGroupSuffix(const TBasicType type,
110 const char *RWTextureTypeSuffix(const TBasicType type,
113 const char *SamplerString(const TBasicType type);
DBaseTypes.h53 enum TBasicType enum
172 constexpr TBasicMangledName(TBasicType t) : mName{'\0', '\0'} in TBasicMangledName()
209 const char *getBasicString(TBasicType t);
211 inline bool IsSampler(TBasicType type) in IsSampler()
216 inline bool IsImage(TBasicType type) in IsImage()
221 inline bool IsUIntImage(TBasicType type) in IsUIntImage()
226 inline bool IsAtomicCounter(TBasicType type) in IsAtomicCounter()
231 inline bool IsSubpassInputType(TBasicType type) in IsSubpassInputType()
236 inline bool IsOpaqueType(TBasicType type) in IsOpaqueType()
241 inline bool IsIntegerSampler(TBasicType type) in IsIntegerSampler()
[all …]
DStaticType.h41 constexpr StaticMangledName BuildStaticMangledName(TBasicType basicType, in BuildStaticMangledName()
65 constexpr StaticArrayMangledName BuildStaticArrayMangledName(TBasicType basicType, in BuildStaticArrayMangledName()
91 template <TBasicType basicType,
100 template <TBasicType basicType,
127 template <TBasicType basicType,
142 template <TBasicType basicType,
164 template <TBasicType basicType,
176 template <TBasicType basicType,
197 template <TBasicType basicType,
206 template <TBasicType basicType,
[all …]
DTypes.h64 bool containsType(TBasicType t) const;
96 explicit TType(TBasicType t, unsigned char ps = 1, unsigned char ss = 1);
97 TType(TBasicType t,
110 constexpr TType(TBasicType t, in TType()
156 constexpr TBasicType getBasicType() const { return type; } in getBasicType()
157 void setBasicType(TBasicType t);
336 bool isStructureContainingType(TBasicType t) const;
338 bool isInterfaceBlockContainingType(TBasicType t) const;
373 TBasicType type;
414 TBasicType type;
[all …]
DValidateSwitch.cpp23 static bool validate(TBasicType switchType,
44 ValidateSwitch(TBasicType switchType, TDiagnostics *context);
48 TBasicType mSwitchType;
62 bool ValidateSwitch::validate(TBasicType switchType, in validate()
73 ValidateSwitch::ValidateSwitch(TBasicType switchType, TDiagnostics *diagnostics) in ValidateSwitch()
207 TBasicType conditionType = condition->getBasicType(); in visitCase()
307 bool ValidateSwitchStatementList(TBasicType switchType, in ValidateSwitchStatementList()
DUtilsHLSL.cpp48 const char *SamplerString(const TBasicType type) in SamplerString()
72 HLSLTextureGroup TextureGroup(const TBasicType type, TLayoutImageInternalFormat imageInternalFormat) in TextureGroup()
352 const char *TextureString(const TBasicType type, TLayoutImageInternalFormat imageInternalFormat) in TextureString()
422 const char *TextureGroupSuffix(const TBasicType type, in TextureGroupSuffix()
428 const char *TextureTypeSuffix(const TBasicType type, TLayoutImageInternalFormat imageInternalFormat) in TextureTypeSuffix()
499 HLSLRWTextureGroup RWTextureGroup(const TBasicType type, in RWTextureGroup()
709 const char *RWTextureString(const TBasicType type, TLayoutImageInternalFormat imageInternalFormat) in RWTextureString()
755 const char *RWTextureGroupSuffix(const TBasicType type, in RWTextureGroupSuffix()
761 const char *RWTextureTypeSuffix(const TBasicType type, in RWTextureTypeSuffix()
DTypes.cpp23 const char *getBasicString(TBasicType t) in getBasicString()
166 TType::TType(TBasicType t, unsigned char ps, unsigned char ss) in TType()
170 TType::TType(TBasicType t, TPrecision p, TQualifier q, unsigned char ps, unsigned char ss) in TType()
409 bool TType::isStructureContainingType(TBasicType t) const in isStructureContainingType()
419 bool TType::isInterfaceBlockContainingType(TBasicType t) const in isInterfaceBlockContainingType()
626 void TType::setBasicType(TBasicType t) in setBasicType()
820 bool TFieldListCollection::containsType(TBasicType type) const in containsType()
926 void TPublicType::initializeBasicType(TBasicType basicType) in initializeBasicType()
950 bool TPublicType::isStructureContainingType(TBasicType t) const in isStructureContainingType()
Dutil.h94 ImplicitTypeConversion GetConversion(TBasicType t1, TBasicType t2);
99 bool IsPrecisionApplicableToType(TBasicType type);
DConstantUnion.h28 bool cast(TBasicType newType, const TConstantUnion &constant);
105 TBasicType getType() const { return type; } in getType()
117 TBasicType type;
DBuildSPIRV.h93 TBasicType type = EbtFloat;
312 spirv::IdRef getBasicTypeId(TBasicType basicType, size_t size);
405 spirv::IdRef declareSpecConst(TBasicType type, int id, const char *name);
438 void getImageTypeParameters(TBasicType type,
448 TBasicType type,
450 spirv::IdRef getNullVectorConstantHelper(TBasicType type, int size);
451 spirv::IdRef getVectorConstantHelper(spirv::IdRef valueId, TBasicType type, int size);
DTextureFunctionHLSL.h50 TBasicType sampler;
60 TBasicType samplerType,
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DAstHelpers.cpp242 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessFieldByIndex()
254 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessIndex()
301 bool sh::HasScalarBasicType(TBasicType type) in HasScalarBasicType()
305 case TBasicType::EbtFloat: in HasScalarBasicType()
306 case TBasicType::EbtDouble: in HasScalarBasicType()
307 case TBasicType::EbtInt: in HasScalarBasicType()
308 case TBasicType::EbtUInt: in HasScalarBasicType()
309 case TBasicType::EbtBool: in HasScalarBasicType()
405 TIntermTyped &sh::CoerceSimple(TBasicType toBasicType, in CoerceSimple()
415 const TBasicType fromBasicType = fromType.getBasicType(); in CoerceSimple()
[all …]
DProgramPrelude.cpp3084 const TBasicType coordBasic = coord.getBasicType(); in BuildFuncToEmitter()
3089 if (coordBasic == TBasicType::EbtFloat && coordN == 3) in BuildFuncToEmitter()
3100 if (coordBasic == TBasicType::EbtFloat && coordN == 4) in BuildFuncToEmitter()
3111 if (coordBasic == TBasicType::EbtFloat && coordN == 4) in BuildFuncToEmitter()
3122 if (coordBasic == TBasicType::EbtFloat && coordN == 3) in BuildFuncToEmitter()
3130 if (coordBasic == TBasicType::EbtFloat && coordN == 4) in BuildFuncToEmitter()
3139 if (coordBasic == TBasicType::EbtFloat && coordN == 2) in BuildFuncToEmitter()
3147 if (coordBasic == TBasicType::EbtFloat && coordN == 3) in BuildFuncToEmitter()
3177 const TBasicType coordBasic = coord.getBasicType(); in BuildFuncToEmitter()
3183 if (coordBasic == TBasicType::EbtFloat && coordN == 3 && dPdxN == 2) in BuildFuncToEmitter()
[all …]
DSymbolEnv.cpp385 const TStructure &SymbolEnv::getTextureEnv(TBasicType samplerType) in getTextureEnv()
498 static TBasicType GetTextureBasicType(TBasicType basicType) in GetTextureBasicType()
525 return TBasicType::EbtFloat; in GetTextureBasicType()
538 return TBasicType::EbtInt; in GetTextureBasicType()
551 return TBasicType::EbtUInt; in GetTextureBasicType()
555 return TBasicType::EbtVoid; in GetTextureBasicType()
559 Name sh::GetTextureTypeName(TBasicType samplerType) in GetTextureTypeName()
563 const TBasicType textureType = GetTextureBasicType(samplerType); in GetTextureTypeName()
571 case TBasicType::EbtFloat: \ in GetTextureTypeName()
574 case TBasicType::EbtInt: \ in GetTextureTypeName()
[all …]
DEmitMetal.cpp562 case TBasicType::EbtInt: \ in GetOperatorString()
564 case TBasicType::EbtUInt: \ in GetOperatorString()
566 case TBasicType::EbtFloat: \ in GetOperatorString()
867 const TBasicType basicType = type.getBasicType(); in emitBareTypeName()
871 case TBasicType::EbtVoid: in emitBareTypeName()
872 case TBasicType::EbtBool: in emitBareTypeName()
873 case TBasicType::EbtFloat: in emitBareTypeName()
874 case TBasicType::EbtInt: in emitBareTypeName()
875 case TBasicType::EbtUInt: in emitBareTypeName()
881 case TBasicType::EbtStruct: in emitBareTypeName()
[all …]
DLayout.cpp74 const TBasicType basicType = type.getBasicType(); in ScalarLayoutOf()
77 case TBasicType::EbtBool: in ScalarLayoutOf()
79 case TBasicType::EbtInt: in ScalarLayoutOf()
80 case TBasicType::EbtUInt: in ScalarLayoutOf()
81 case TBasicType::EbtFloat: in ScalarLayoutOf()
172 ASSERT(type.getBasicType() == TBasicType::EbtFloat); in MetalLayoutOf()
DSymbolEnv.h139 using TextureStructs = std::map<TBasicType, TStructure *>;
177 const TStructure &getTextureEnv(TBasicType samplerType);
212 std::unordered_map<TBasicType, const TStructure *> mTextureEnvs;
221 Name GetTextureTypeName(TBasicType samplerType);
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DBaseTypes.h46 enum TBasicType : unsigned char enum
106 inline const char *getBasicString(TBasicType type) in getBasicString()
148 inline bool IsSampler(TBasicType type) in IsSampler()
153 inline bool IsIntegerSampler(TBasicType type) in IsIntegerSampler()
183 inline bool IsSampler2D(TBasicType type) in IsSampler2D()
213 inline bool IsSamplerCube(TBasicType type) in IsSamplerCube()
243 inline bool IsSampler3D(TBasicType type) in IsSampler3D()
273 inline bool IsSamplerArray(TBasicType type) in IsSamplerArray()
303 inline bool IsShadowSampler(TBasicType type) in IsShadowSampler()
333 inline bool IsInteger(TBasicType type) in IsInteger()
[all …]
DTypes.h135 bool containsType(TBasicType type) const;
244 TType(TBasicType t, int s0 = 1, int s1 = 1) : in POOL_ALLOCATOR_NEW_DELETE()
251 …TType(TBasicType t, TPrecision p, TQualifier q = EvqTemporary, int s0 = 1, int s1 = 1, bool a = fa…
275 TBasicType getBasicType() const { return type; } in getBasicType()
276 void setBasicType(TBasicType t) { type = t; } in setBasicType()
520 bool isStructureContainingType(TBasicType t) const in isStructureContainingType()
534 TBasicType type = EbtVoid;
564 TBasicType type;
576 void setBasic(TBasicType bt, TQualifier q, const TSourceLoc &ln) in setBasic()
630 bool isStructureContainingType(TBasicType t) const in isStructureContainingType()
DValidateSwitch.h28 static bool validate(TBasicType switchType, TParseContext *context,
43 ValidateSwitch(TBasicType switchType, TParseContext *context);
47 TBasicType mSwitchType;
DValidateSwitch.cpp19 bool ValidateSwitch::validate(TBasicType switchType, TParseContext *context, in validate()
28 ValidateSwitch::ValidateSwitch(TBasicType switchType, TParseContext *context) in ValidateSwitch()
121 TBasicType conditionType = condition->getBasicType(); in visitCase()
/third_party/glslang/glslang/MachineIndependent/
Dlocalintermediate.h125 TIoRange(TRange location, TRange component, TBasicType basicType, int index) in TIoRange()
133 TBasicType basicType;
467 TIntermTyped* addConversion(TBasicType convertTo, TIntermTyped* node) const;
475 bool canImplicitlyPromote(TBasicType from, TBasicType to, TOperator op = EOpNull) const;
476 bool isIntegralPromotion(TBasicType from, TBasicType to) const;
477 bool isFPPromotion(TBasicType from, TBasicType to) const;
478 bool isIntegralConversion(TBasicType from, TBasicType to) const;
479 bool isFPConversion(TBasicType from, TBasicType to) const;
480 bool isFPIntegralConversion(TBasicType from, TBasicType to) const;
503 …TIntermConstantUnion* addConstantUnion(double, TBasicType, const TSourceLoc&, bool literal = false…
[all …]
DIntermediate.cpp385 TBasicType newType = EbtVoid; in addUnaryMath()
565 bool TIntermediate::buildConvertOp(TBasicType dst, TBasicType src, TOperator& newOp) const in buildConvertOp()
799 TIntermTyped* TIntermediate::createConversion(TBasicType convertTo, TIntermTyped* node) const in createConversion()
875 TIntermTyped* TIntermediate::addConversion(TBasicType convertTo, TIntermTyped* node) const in addConversion()
967 TBasicType node0BasicType = node0->getBasicType(); in addPairConversion()
1444 bool TIntermediate::isIntegralPromotion(TBasicType from, TBasicType to) const in isIntegralPromotion()
1461 bool TIntermediate::isFPPromotion(TBasicType from, TBasicType to) const in isFPPromotion()
1476 bool TIntermediate::isIntegralConversion(TBasicType from, TBasicType to) const in isIntegralConversion()
1560 bool TIntermediate::isFPConversion(TBasicType from, TBasicType to) const in isFPConversion()
1573 bool TIntermediate::isFPIntegralConversion(TBasicType from, TBasicType to) const in isFPIntegralConversion()
[all …]
/third_party/glslang/glslang/Include/
DBaseTypes.h47 enum TBasicType { enum
505 __inline bool isTypeSignedInt(TBasicType type) in isTypeSignedInt()
518 __inline bool isTypeUnsignedInt(TBasicType type) in isTypeUnsignedInt()
531 __inline bool isTypeInt(TBasicType type) in isTypeInt()
536 __inline bool isTypeFloat(TBasicType type) in isTypeFloat()
548 __inline int getTypeRank(TBasicType type) in getTypeRank()
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DShaderImage_test.cpp27 TBasicType imageType, in CheckImageStoreCall()
29 TBasicType storeValueType, in CheckImageStoreCall()
56 TBasicType imageType, in CheckImageLoadCall()
91 TBasicType imageType, in CheckImageDeclaration()

1234