/device/generic/vulkan-cereal/third-party/angle/src/compiler/translator/ |
D | IntermNode.cpp | 193 ASSERT(mType.getBasicType() != EbtBool || precision == EbpUndefined); in setTypePreservePrecision() 582 if (getBasicType() != EbtStruct) in setPrecisionAndQualifier() 614 if (getBasicType() == EbtBool) in setPrecisionFromChildren() 667 ASSERT(getBasicType() != EbtBool); in setBuiltInFunctionPrecision() 675 if (typed && IsSampler(typed->getBasicType())) in setBuiltInFunctionPrecision() 750 TBasicType basicType = getBasicType(); in getConstantValue() 1284 setType(TType(mOperand->getBasicType(), EbpHigh, resultQualifier, operandPrimarySize)); in promote() 1462 setType(TType(mOperand->getBasicType(), mOperand->getPrecision(), resultQualifier, in promote() 1569 setType(TType(mLeft->getBasicType(), mLeft->getPrecision(), resultQualifier, in promote() 1574 setType(TType(mLeft->getBasicType(), mLeft->getPrecision(), resultQualifier)); in promote() [all …]
|
D | ParseContext.cpp | 41 if (IsSampler(type.getBasicType())) in ContainsSampler() 45 if (type.getBasicType() == EbtStruct) in ContainsSampler() 66 ASSERT(IsImage(imageNode->getBasicType())); in GetImageArgumentToken() 83 if (!SupportsPrecision(type.getBasicType())) in CanSetDefaultPrecisionOnType() 87 if (type.getBasicType() == EbtUInt) in CanSetDefaultPrecisionOnType() 605 if (node->getBasicType() == EbtVoid) in checkCanBeLValue() 609 if (IsOpaqueType(node->getBasicType())) in checkCanBeLValue() 612 message += getBasicString(node->getBasicType()); in checkCanBeLValue() 733 if (type.getBasicType() != EbtStruct && IsOpaqueType(argTyped->getBasicType())) in checkConstructorArguments() 736 reason += getBasicString(argTyped->getBasicType()); in checkConstructorArguments() [all …]
|
D | ResourcesHLSL.cpp | 35 if (IsSampler(type.getBasicType())) in UniformRegisterPrefix() 156 if (IsSampler(type.getBasicType()) || in assignUniformRegister() 157 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister() 161 else if (IsImage(type.getBasicType())) in assignUniformRegister() 199 if (IsSampler(type.getBasicType()) || in assignUniformRegister() 200 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister() 204 else if (IsImage(type.getBasicType())) in assignUniformRegister() 224 ASSERT(IsSampler(type.getBasicType())); in assignSamplerInStructUniformRegister() 381 out << "uniform " << SamplerString(type.getBasicType()) << " sampler_" in outputHLSL4_0_FL9_3Sampler() 384 out << "uniform " << TextureString(type.getBasicType()) << " texture_" in outputHLSL4_0_FL9_3Sampler() [all …]
|
D | util.cpp | 202 if (type.getBasicType() == EbtFloat) in GLVariableType() 285 else if (type.getBasicType() == EbtInt) in GLVariableType() 310 else if (type.getBasicType() == EbtUInt) in GLVariableType() 335 else if (type.getBasicType() == EbtBool) in GLVariableType() 361 switch (type.getBasicType()) in GLVariableType() 462 if (type.getBasicType() == EbtFloat) in GLVariablePrecision() 479 else if (type.getBasicType() == EbtInt || type.getBasicType() == EbtUInt) in GLVariablePrecision() 524 if (type.getBasicType() == EbtStruct) in GetTypeName()
|
D | OutputHLSL.cpp | 205 ASSERT(node->getBasicType() == EbtStruct); in needStructMapping() 517 else if (type.getBasicType() == EbtStruct) in structInitializerString() 1158 if (IsInStd140UniformBlock(node) && node->getBasicType() == EbtStruct && in visitSymbol() 1173 else if (IsAtomicCounter(variable.getType().getBasicType())) in visitSymbol() 1359 else if (type.getBasicType() == EbtStruct) in outputEqual() 1404 if (IsSampler(field->type()->getBasicType())) in ancestorEvaluatesToSamplerInStruct() 1639 else if (IsAtomicCounter(leftType.getBasicType())) in visitBinary() 1667 ASSERT(node->getLeft()->getBasicType() != EbtInterfaceBlock); in visitBinary() 1670 if (IsAtomicCounter(leftType.getBasicType())) in visitBinary() 1703 bool indexingReturnsSampler = IsSampler(field->type()->getBasicType()); in visitBinary() [all …]
|
D | Types.cpp | 151 : type(p.getBasicType()), in TType() 299 switch (getBasicType()) in getBuiltInTypeNameString() 358 ASSERT(getBasicType() != EbtStruct); in getBuiltInTypeNameString() 359 ASSERT(getBasicType() != EbtInterfaceBlock); in getBuiltInTypeNameString() 471 if (getBasicType() == EbtStruct) in getObjectSize() 494 if (getBasicType() == EbtStruct) in getLocationCount() 773 if (fieldType->getBasicType() == type || fieldType->isStructureContainingType(type)) in containsType() 784 if (IsSampler(fieldType->getBasicType()) || fieldType->isStructureContainingSamplers()) in containsSamplers()
|
D | OutputGLSLBase.cpp | 197 if (IsImage(type.getBasicType())) in getCommonLayoutQualifiers() 207 if (IsAtomicCounter(type.getBasicType())) in getCommonLayoutQualifiers() 259 if (type.getBasicType() == EbtInterfaceBlock) in writeLayoutQualifier() 281 if (IsOpaqueType(type.getBasicType())) in writeLayoutQualifier() 400 if (type.getBasicType() == EbtStruct && !structDeclared(type.getStruct())) in writeVariableType() 406 else if (type.getBasicType() == EbtInterfaceBlock) in writeVariableType() 445 if (type.getBasicType() == EbtStruct) in writeConstantUnion() 1245 if (type.getBasicType() == EbtSamplerVideoWEBGL) in getTypeName() 1440 if (type.getBasicType() == EbtInterfaceBlock) in NeedsToWriteLayoutQualifier() 1459 if (IsOpaqueType(type.getBasicType()) && layoutQualifier.binding != -1) in NeedsToWriteLayoutQualifier() [all …]
|
D | OutputVulkanGLSL.cpp | 54 IsSampler(type.getBasicType()) || type.isInterfaceBlock() || IsImage(type.getBasicType()); in writeLayoutQualifier() 158 if (type.getBasicType() == EbtSamplerExternalOES) in writeVariableType()
|
D | StructureHLSL.cpp | 45 if (!IsSampler(fieldType.getBasicType())) in Define() 123 if (type.getBasicType() == EbtStruct || type.isMatrix() || type.isArray()) in prePadding() 176 if (!forcePadding && !type.isMatrix() && !type.isArray() && type.getBasicType() != EbtStruct) in postPaddingString() 259 if (fieldType->getBasicType() == EbtStruct) in defineVariants() 341 if (!IsSampler(fieldType->getBasicType())) in addStructConstructor()
|
D | FlagStd140Structs.cpp | 41 if (field->type()->getBasicType() == EbtStruct) in mapBlockStructMembers() 54 if (declarator->getBasicType() == EbtInterfaceBlock) in visitDeclaration()
|
D | ShaderStorageBlockFunctionHLSL.cpp | 26 switch (ssboFunction.type.getBasicType()) in OutputSSBOLoadFunctionBody() 123 if (ssboFunction.type.getBasicType() == EbtBool) in OutputSSBOStoreFunctionBody() 135 if (ssboFunction.type.getBasicType() == EbtBool) in OutputSSBOStoreFunctionBody()
|
D | UtilsHLSL.cpp | 28 if (paramType.getObjectSize() == 4 && paramType.getBasicType() == EbtFloat) in DisambiguateFunctionNameForParameterType() 35 else if (paramType.getBasicType() == EbtStruct) in DisambiguateFunctionNameForParameterType() 913 switch (type.getBasicType()) in TypeString()
|
D | CollectVariables.cpp | 401 else if (symbol->getType().getBasicType() == EbtInterfaceBlock) in visitSymbol() 753 ASSERT(interfaceBlockType.getBasicType() == EbtInterfaceBlock); in recordInterfaceBlock() 850 if (typedNode.getBasicType() != EbtInterfaceBlock && !isShaderVariable) in visitDeclaration() 869 if (typedNode.getBasicType() == EbtInterfaceBlock) in visitDeclaration()
|
D | Types.h | 154 constexpr TBasicType getBasicType() const { return type; } in getBasicType() function 456 TBasicType getBasicType() const { return typeSpecifierNonArray.type; } in getBasicType() function
|
/device/generic/vulkan-cereal/third-party/angle/src/tests/compiler_tests/ |
D | ShaderImage_test.cpp | 40 ASSERT_EQ(imageType, storeArgument1Typed->getBasicType()); in CheckImageStoreCall() 43 ASSERT_EQ(EbtInt, storeArgument2Typed->getBasicType()); in CheckImageStoreCall() 47 ASSERT_EQ(storeValueType, storeArgument3Typed->getBasicType()); in CheckImageStoreCall() 67 ASSERT_EQ(imageType, loadArgument1Typed->getBasicType()); in CheckImageLoadCall() 70 ASSERT_EQ(EbtInt, loadArgument2Typed->getBasicType()); in CheckImageLoadCall() 103 ASSERT_EQ(imageType, myImageNode->getBasicType()); in CheckImageDeclaration()
|
/device/generic/vulkan-cereal/third-party/angle/src/compiler/translator/tree_ops/ |
D | RewriteUnaryMinusOperatorInt.cpp | 86 if (opr->getType().getBasicType() == EbtInt) in visitUnary() 95 new TIntermConstantUnion(one, TType(opr->getBasicType(), opr->getPrecision(), EvqConst)); in visitUnary()
|
D | RemoveDynamicIndexing.cpp | 51 switch (type.getBasicType()) in GetIndexFunctionName() 82 if (node->getBasicType() == EbtInt) in EnsureSignedInt() 94 TType *fieldType = new TType(indexedType.getBasicType(), indexedType.getPrecision()); in GetFieldType() 100 return new TType(indexedType.getBasicType(), indexedType.getPrecision()); in GetFieldType()
|
D | VectorizeVectorScalarArithmetic.cpp | 100 if (node->getBasicType() != EbtFloat) in visitBinary() 225 if (!argument->isScalar() || argument->getBasicType() != EbtFloat) in visitAggregate()
|
D | InitializeVariables.cpp | 72 ASSERT(initializedNode->getBasicType() == EbtStruct); in AddStructZeroInitSequence() 144 (initializedNode->getBasicType() != EbtStruct && in AddArrayZeroInitSequence()
|
D | AddDefaultReturnStatements.cpp | 26 if (returnType->getBasicType() == EbtVoid) in NeedsReturnStatement()
|
D | BreakVariableAliasingInInnerLoops.cpp | 62 if (type.isArray() || IsSampler(type.getBasicType())) in visitBinary()
|
D | RecordConstantPrecision.cpp | 101 if (parentAsAggregate->isConstructor() && parentAsAggregate->getBasicType() == EbtBool) in operandAffectsParentOperationPrecision()
|
D | RewriteElseBlocks.cpp | 87 if (mFunctionType && mFunctionType->getBasicType() != EbtVoid) in rewriteIfElse()
|
/device/generic/vulkan-cereal/third-party/angle/src/compiler/translator/tree_util/ |
D | IntermNode_util.cpp | 53 if (!type.isArray() && type.getBasicType() != EbtStruct) in CreateZeroNode() 59 switch (type.getBasicType()) in CreateZeroNode() 104 ASSERT(type.getBasicType() == EbtStruct); in CreateZeroNode()
|
D | IntermNodePatternMatcher.cpp | 59 node->getLeft()->getBasicType() != EbtStruct; in IsDynamicIndexingOfVectorOrMatrix() 201 if (declarator->getBasicType() == EbtStruct && in match()
|