Home
last modified time | relevance | path

Searched refs:getBasicType (Results 1 – 25 of 131) sorted by relevance

123456

/third_party/glslang/glslang/MachineIndependent/
DIntermediate.cpp119 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addBinaryMath()
131 if (left->isReference() && isTypeInt(right->getBasicType())) { in addBinaryMath()
145 if (op == EOpAdd && right->isReference() && isTypeInt(left->getBasicType())) { in addBinaryMath()
288 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addAssign()
358 if (child->getType().getBasicType() == EbtBlock) in addUnaryMath()
367 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
377 if (child->getType().getBasicType() == EbtStruct || child->getType().isArray()) in addUnaryMath()
536 switch (node->getBasicType()) { in isConversionAllowed()
547 if (getSource() == EShSourceHlsl && node->getBasicType() == EbtSampler) in isConversionAllowed()
552 if (node->getBasicType() == EbtSampler && op == EOpAssign && in isConversionAllowed()
[all …]
Dreflection.cpp100 if (base.getType().getBasicType() == EbtBlock) { in addUniform()
140 if (type.getBasicType() == EbtBlock) { in addPipeIOVariable()
147 if (type.isArray() && type.getBasicType() == EbtBlock) { in addPipeIOVariable()
201 if (type.getBasicType() == EbtBlock) in getArrayStride()
222 …bool blockParent = (parentType.getBasicType() == EbtBlock && parentType.getQualifier().storage == … in countAggregateMembers()
263 …bool blockParent = (baseType.getBasicType() == EbtBlock && baseType.getQualifier().storage == EvqB… in blowUpActiveAggregate()
282 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate()
285 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate()
303 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate()
306 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) { in blowUpActiveAggregate()
[all …]
DParseHelper.cpp488 if (base->getBasicType() == EbtBlock) { in handleBracketDereference()
499 else if (base->getBasicType() == EbtSampler && version >= 130) { in handleBracketDereference()
542 if ((! limits.generalSamplerIndexing && base->getBasicType() == EbtSampler) || in handleIndexLimits()
841 (base->isFloatingDomain() || base->isIntegerDomain() || base->getBasicType() == EbtBool)) { in handleDotDereference()
909 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotSwizzle()
923 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
927 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
1074 if (function.getType().getBasicType() != EbtVoid) in handleFunctionDefinition()
1366 if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
1401 else if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
[all …]
DlinkValidate.cpp470 …if (symbol->getType().getBasicType() == EbtBlock && unitSymbol->getType().getBasicType() == EbtBlo… in mergeLinkerObjects()
1114 if (size == 2 && type.getBasicType() == EbtDouble && type.getVectorSize() == 3 && in addUsedLocation()
1123 TIoRange range(locationRange, componentRange, type.getBasicType(), 0); in addUsedLocation()
1133 TIoRange range2(locationRange2, componentRange2, type.getBasicType(), 0); in addUsedLocation()
1149 … int consumedComponents = type.getVectorSize() * (type.getBasicType() == EbtDouble ? 2 : 1); in addUsedLocation()
1156 …TIoRange range(locationRange, componentRange, type.getBasicType(), qualifier.hasIndex() ? qualifie… in addUsedLocation()
1180 …} else if (range.location.overlap(usedIo[set][r].location) && type.getBasicType() != usedIo[set][r… in checkLocationRange()
1270 if (type.getBasicType() == EbtDouble && type.getVectorSize() > 2) in computeTypeLocationSize()
1424 …if (type.getBasicType() == EbtDouble || type.getBasicType() == EbtInt64 || type.getBasicType() == … in computeTypeXfbSize()
1427 …} else if (type.getBasicType() == EbtFloat16 || type.getBasicType() == EbtInt16 || type.getBasicTy… in computeTypeXfbSize()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.cpp190 if (IsPrecisionApplicableToType(node->getBasicType())) in PropagatePrecisionIfApplicable()
671 if (getBasicType() == EbtBool || getBasicType() == EbtVoid || getBasicType() == EbtStruct) in derivePrecision()
863 TBasicType basicType = getBasicType(); in getConstantValue()
1419 ASSERT(resultType.getBasicType() == EbtFloat); in promote()
1694 setType(TType(mOperand->getBasicType(), EbpUndefined, resultQualifier, in promote()
1942 ASSERT(mLeft->getBasicType() == EbtBool && mRight->getBasicType() == EbtBool); in promote()
2328 if (constArray && mType.getBasicType() == EbtUInt) in fold()
2335 if (typedArg->getBasicType() == EbtFloat) in fold()
2426 ASSERT(leftType.getBasicType() == EbtFloat && rightType.getBasicType() == EbtFloat); in FoldBinary()
2459 if (IsFloatDivision(leftType.getBasicType(), rightType.getBasicType())) in FoldBinary()
[all …]
DResourcesHLSL.cpp30 if (IsSampler(type.getBasicType())) in UniformRegisterPrefix()
104 switch (type.getBasicType()) in InterfaceBlockScalarVectorFieldPaddingString()
211 if (IsSampler(type.getBasicType()) || in assignUniformRegister()
212 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister()
216 else if (IsImage(type.getBasicType())) in assignUniformRegister()
254 if (IsSampler(type.getBasicType()) || in assignUniformRegister()
255 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister()
259 else if (IsImage(type.getBasicType())) in assignUniformRegister()
279 ASSERT(IsSampler(type.getBasicType())); in assignSamplerInStructUniformRegister()
436 out << "uniform " << SamplerString(type.getBasicType()) << " sampler_" in outputHLSL4_0_FL9_3Sampler()
[all …]
DParseContext.cpp41 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()
660 if (node->getBasicType() == EbtVoid) in checkCanBeLValue()
664 if (IsOpaqueType(node->getBasicType())) in checkCanBeLValue()
667 message += getBasicString(node->getBasicType()); in checkCanBeLValue()
788 if (type.getBasicType() != EbtStruct && IsOpaqueType(argTyped->getBasicType())) in checkConstructorArguments()
791 reason += getBasicString(argTyped->getBasicType()); in checkConstructorArguments()
[all …]
DOutputVulkanGLSL.cpp37 bool needsSetBinding = IsSampler(type.getBasicType()) || in writeLayoutQualifier()
40 IsImage(type.getBasicType()) || IsSubpassInputType(type.getBasicType()); in writeLayoutQualifier()
44 bool needsInputAttachmentIndex = IsSubpassInputType(type.getBasicType()); in writeLayoutQualifier()
160 if (type.getBasicType() == EbtSamplerExternalOES) in writeVariableType()
DOutputHLSL.cpp205 ASSERT(node->getBasicType() == EbtStruct); in needStructMapping()
517 else if (type.getBasicType() == EbtStruct) in structInitializerString()
1165 if (IsInStd140UniformBlock(node) && node->getBasicType() == EbtStruct && in visitSymbol()
1180 else if (IsAtomicCounter(variable.getType().getBasicType())) in visitSymbol()
1366 else if (type.getBasicType() == EbtStruct) in outputEqual()
1411 if (IsSampler(field->type()->getBasicType())) in ancestorEvaluatesToSamplerInStruct()
1646 else if (IsAtomicCounter(leftType.getBasicType())) in visitBinary()
1678 ASSERT(node->getLeft()->getBasicType() != EbtInterfaceBlock); in visitBinary()
1681 if (IsAtomicCounter(leftType.getBasicType())) in visitBinary()
1718 bool indexingReturnsSampler = IsSampler(field->type()->getBasicType()); in visitBinary()
[all …]
DTypes.cpp175 : type(p.getBasicType()), in TType()
325 switch (getBasicType()) in getBuiltInTypeNameString()
384 ASSERT(getBasicType() != EbtStruct); in getBuiltInTypeNameString()
385 ASSERT(getBasicType() != EbtInterfaceBlock); in getBuiltInTypeNameString()
502 if (getBasicType() == EbtStruct) in getObjectSize()
525 if (getBasicType() == EbtStruct) in getLocationCount()
825 if (fieldType->getBasicType() == type || fieldType->isStructureContainingType(type)) in containsType()
836 if (IsSampler(fieldType->getBasicType()) || fieldType->isStructureContainingSamplers()) in containsSamplers()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp103 if(glu::isDataTypeFloatType(symIter->varType.getBasicType())) in packFloat16Bit()
105 if(glu::isDataTypeVector(symIter->varType.getBasicType())) in packFloat16Bit()
107 for(int i = 0; i < glu::getDataTypeScalarSize(symIter->varType.getBasicType()); i++) in packFloat16Bit()
112 else if (glu::isDataTypeMatrix(symIter->varType.getBasicType())) in packFloat16Bit()
116 switch (symIter->varType.getBasicType()) in packFloat16Bit()
225 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
227 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
246 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(input->varType.getBasicType())) in generateVertexShader()
248 …std::string tname = glu::getDataTypeName(getDataTypeFloat16Scalars(input->varType.getBasicType())); in generateVertexShader()
258 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(output->varType.getBasicType())) in generateVertexShader()
[all …]
DvktShaderCommonFunctionTests.cpp209 sizes.push_back(getComponentByteSize(sym.varType.getBasicType())); in getComponentByteSizes()
217 totalSize += getComponentByteSize(sym.varType.getBasicType()) * sym.varType.getScalarSize(); in computeTotalByteSize()
230 const auto componentBytes = getComponentByteSize(var.varType.getBasicType()); in getInputOutputPointers()
302 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
511 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
522 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
579 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
593 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
637 const glu::DataType type = spec.inputs[0].varType.getBasicType(); in infNanRandomFloats()
690 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
[all …]
DvktShaderIntegerFunctionTests.cpp83 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
413 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
467 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
523 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
575 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
631 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
681 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
735 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
786 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
840 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DTranslatorMetalUtils.cpp25 switch (t->getBasicType()) in getBasicMetalString()
233 switch (t->getBasicType()) in getBuiltInMetalTypeNameString()
292 ASSERT(t->getBasicType() != EbtStruct); in getBuiltInMetalTypeNameString()
293 ASSERT(t->getBasicType() != EbtInterfaceBlock); in getBuiltInMetalTypeNameString()
299 if (type.getBasicType() == EbtStruct) in GetMetalTypeName()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DIntermediate.cpp67 switch(type.getBasicType()) in TypeToConstructorOperator()
341 …if (left->isMatrix() || left->isArray() || left->isVector() || left->getBasicType() == EbtStruct) { in addBinaryMath()
348 if (left->getBasicType() != EbtBool || left->isMatrix() || left->isArray() || left->isVector()) { in addBinaryMath()
355 if (!IsInteger(left->getBasicType()) || left->isMatrix() || left->isArray()) { in addBinaryMath()
363 if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool) { in addBinaryMath()
369 …if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool || left->getBasicType() =… in addBinaryMath()
380 if(!IsInteger(left->getBasicType()) || !IsInteger(right->getBasicType())) in addBinaryMath()
388 if(!isBitShift && left->getBasicType() != right->getBasicType()) in addBinaryMath()
482 …if (!IsInteger(child->getType().getBasicType()) || child->getType().isMatrix() || child->getType()… in addUnaryMath()
488 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
[all …]
DSymbolTable.h239 TBasicType basicType = type->getBasicType(); in IsGenType()
250 TBasicType basicType = type->getBasicType(); in IsVecType()
268 switch(type->getBasicType()) in GenType()
289 switch(type->getBasicType()) in VecType()
355 if(ptype1->getBasicType() == EbtGSampler2D)
358 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
363 else if(ptype1->getBasicType() == EbtGSampler3D)
366 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
371 else if(ptype1->getBasicType() == EbtGSamplerCube)
374 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
[all …]
DParseHelper.cpp374 if(IsSampler(node->getBasicType())) in lValueErrorCheck()
378 else if(node->getBasicType() == EbtVoid) in lValueErrorCheck()
587 if (op != EOpConstructStruct && IsSampler(typed->getBasicType())) { in constructorErrorCheck()
591 if (typed->getBasicType() == EbtVoid) { in constructorErrorCheck()
619 if (type->getBasicType() != EbtBool || type->isArray() || type->isMatrix() || type->isVector()) { in boolErrorCheck()
778 type.getBasicType() != EbtStruct && IsSampler(type.getBasicType())) { in parameterSamplerErrorCheck()
788 if (IsSampler(type.getBasicType())) in containsSampler()
791 if (type.getBasicType() == EbtStruct || type.isInterfaceBlock()) { in containsSampler()
817 if (constant->getBasicType() == EbtUInt) in arraySizeErrorCheck()
1037 if(voidErrorCheck(line, identifier, type.getBasicType())) in declareVariable()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fProgramInterfaceDefinition.cpp71 if (varType.isBasicType() && predicate(varType.getBasicType())) in containsMatchingSubtype()
130 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexInput()
141 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalVertexOutput()
143 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexOutput()
187 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalFragmentOutput()
189 …if (glu::isDataTypeBoolOrBVec(varType.getBasicType()) || isOpaqueType || glu::isDataTypeMatrix(var… in isIllegalFragmentOutput()
211 …return glu::isDataTypeIntOrIVec(varType.getBasicType()) || glu::isDataTypeUintOrUVec(varType.getBa… in isTypeIntegerOrContainsIntegers()
Des31fShaderIntegerFunctionTests.cpp81 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
343 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
397 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
439 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
491 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
533 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
583 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
623 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
674 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
714 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
Des31fShaderCommonFunctionTests.cpp356 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
484 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
496 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
566 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
589 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
666 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
696 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
778 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
787 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
841 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
/third_party/vk-gl-cts/framework/opengl/
DgluVarTypeUtil.hpp189 …nst VarType& type) const { return type.isBasicType() && isDataTypeScalar(type.getBasicType()); } }; in operator ()()
190 …ype& type) const { return type.isBasicType() && isDataTypeScalarOrVector(type.getBasicType()); } }; in operator ()()
247 DE_ASSERT(isDataTypeMatrix(parentType.getBasicType())); in removeTraversed()
248 if (curComp.index+1 < getDataTypeMatrixNumColumns(parentType.getBasicType())) in removeTraversed()
253 DE_ASSERT(isDataTypeVector(parentType.getBasicType())); in removeTraversed()
254 if (curComp.index+1 < getDataTypeScalarSize(parentType.getBasicType())) in removeTraversed()
294 DataType basicType = curType.getBasicType(); in findNext()
349 DataType basicType = curType->getBasicType(); in isValidTypePath()
396 DataType basicType = curType->getBasicType(); in getVarType()
DgluVarTypeUtil.cpp140 else if (curType.isBasicType() && isDataTypeMatrix(curType.getBasicType())) in parseTypePath()
142 TCU_CHECK(de::inBounds(ndx, 0, getDataTypeMatrixNumColumns(curType.getBasicType()))); in parseTypePath()
145 else if (curType.isBasicType() && isDataTypeVector(curType.getBasicType())) in parseTypePath()
147 TCU_CHECK(de::inBounds(ndx, 0, getDataTypeScalarSize(curType.getBasicType()))); in parseTypePath()
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DShaderImage_test.cpp40 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()
/third_party/vk-gl-cts/modules/glshared/
DglsShaderExecUtil.cpp117 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
119 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
155 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
157 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
196 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateGeometryShader()
198 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateGeometryShader()
235 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateGeometryShader()
237 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateGeometryShader()
311 if (useIntOutputs && glu::isDataTypeFloatOrVec(output.varType.getBasicType())) in generateFragShaderOutputDecl()
313 const int vecSize = glu::getDataTypeScalarSize(output.varType.getBasicType()); in generateFragShaderOutputDecl()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderCommonFunctionTests.cpp281 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
409 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
421 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
491 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
514 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
591 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
621 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
703 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
712 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
766 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]

123456